aboutsummaryrefslogtreecommitdiff
path: root/ports/imgui
diff options
context:
space:
mode:
Diffstat (limited to 'ports/imgui')
-rw-r--r--ports/imgui/CONTROL7
-rw-r--r--ports/imgui/portfile.cmake19
2 files changed, 21 insertions, 5 deletions
diff --git a/ports/imgui/CONTROL b/ports/imgui/CONTROL
index e87894d5e..bee67cc00 100644
--- a/ports/imgui/CONTROL
+++ b/ports/imgui/CONTROL
@@ -1,6 +1,6 @@
Source: imgui
-Version: 1.77
-Port-Version: 3
+Version: 1.78
+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 7b8cf3026..1da67c911 100644
--- a/ports/imgui/portfile.cmake
+++ b/ports/imgui/portfile.cmake
@@ -3,8 +3,8 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ocornut/imgui
- REF v1.77
- SHA512 d5ebf4bb5e1ce83b226f2e68b3afe0f0abaeb55245fedf754e5453afd8d1df4dac8b5c47fc284c2588b40d05a55fc191b5e55c7be279c5e5e23f7c5b70150546
+ REF v1.78
+ SHA512 2410df5b39d5ca14ea7181ef4f3b501ad8879e10895ed540f079f213dcc528b50e57cc16fce6f50a67e8a7be00b03c5833cabfd5db4ba210cafce6d95da389c6
HEAD_REF master
)
@@ -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)