aboutsummaryrefslogtreecommitdiff
path: root/ports/imgui
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-08-24 12:49:35 -0700
committerGitHub <noreply@github.com>2020-08-24 12:49:35 -0700
commitbf594d63fce3e581a0f36404788946515e88f2de (patch)
treed341c2c470b30ee0b16f3ac39ff3e9599a0e290f /ports/imgui
parent02bfa2961ad0bc06efd2540b14f14659ad158177 (diff)
downloadvcpkg-bf594d63fce3e581a0f36404788946515e88f2de.tar.gz
vcpkg-bf594d63fce3e581a0f36404788946515e88f2de.zip
[libigl] fix imgui feature (#12691)
Diffstat (limited to 'ports/imgui')
-rw-r--r--ports/imgui/CONTROL5
-rw-r--r--ports/imgui/portfile.cmake15
2 files changed, 18 insertions, 2 deletions
diff --git a/ports/imgui/CONTROL b/ports/imgui/CONTROL
index 38dc6775c..bee67cc00 100644
--- a/ports/imgui/CONTROL
+++ b/ports/imgui/CONTROL
@@ -1,6 +1,6 @@
Source: imgui
Version: 1.78
-Port-Version: 1
+Port-Version: 2
Homepage: https://github.com/ocornut/imgui
Description: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.
@@ -70,3 +70,6 @@ Description: Make available Win32 binding
Feature: freetype
Description: Build font atlases using FreeType instead of stb_truetype
Build-Depends: freetype
+
+Feature: libigl-imgui
+Description: Install the libigl-imgui headers
diff --git a/ports/imgui/portfile.cmake b/ports/imgui/portfile.cmake
index 0290b4fff..1da67c911 100644
--- a/ports/imgui/portfile.cmake
+++ b/ports/imgui/portfile.cmake
@@ -36,6 +36,19 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
freetype IMGUI_FREETYPE
)
+if ("libigl-imgui" IN_LIST FEATURES)
+ vcpkg_download_distfile(
+ IMGUI_FONTS_DROID_SANS_H
+ URLS
+ https://raw.githubusercontent.com/libigl/libigl-imgui/c3efb9b62780f55f9bba34561f79a3087e057fc0/imgui_fonts_droid_sans.h
+ FILENAME "imgui_fonts_droid_sans.h"
+ SHA512
+ abe9250c9a5989e0a3f2285bbcc83696ff8e38c1f5657c358e6fe616ff792d3c6e5ff2fa23c2eeae7d7b307392e0dc798a95d14f6d10f8e9bfbd7768d36d8b31
+ )
+
+ file(INSTALL ${IMGUI_FONTS_DROID_SANS_H} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -50,4 +63,4 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets()
-file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)