aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/imgui/CONTROL5
-rw-r--r--ports/imgui/portfile.cmake14
2 files changed, 16 insertions, 3 deletions
diff --git a/ports/imgui/CONTROL b/ports/imgui/CONTROL
index 76730383d..949951acd 100644
--- a/ports/imgui/CONTROL
+++ b/ports/imgui/CONTROL
@@ -1,6 +1,6 @@
Source: imgui
Version: 1.79
-Port-Version: 1
+Port-Version: 3
Homepage: https://github.com/ocornut/imgui
Description: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.
@@ -76,3 +76,6 @@ Description: Install the libigl-imgui headers
Feature: wchar32
Description: Use WCHAR32 instead of WCHAR16
+
+Feature: docking-experimental
+Description: Build with docking support
diff --git a/ports/imgui/portfile.cmake b/ports/imgui/portfile.cmake
index a826ddb1f..2238ca888 100644
--- a/ports/imgui/portfile.cmake
+++ b/ports/imgui/portfile.cmake
@@ -1,12 +1,22 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
-vcpkg_from_github(
+if ("docking-experimental" IN_LIST FEATURES)
+ vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ocornut/imgui
+ REF 682249396f02b8c21e5ff333ab4a1969c89387ad
+ SHA512 95f17c14e0a8f10dfc51fd1b30894f9905433fac8f9a93b6c545a542df5eb20be68f40996080a85cba934107ce19fff91a1df1edad1a1b5a0030e8f626e1985d
+ HEAD_REF docking
+ )
+else()
+ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ocornut/imgui
REF v1.79
SHA512 35ed7af89123e09989ef81085f19ed15f97f4798e2b35834fd8b4ae918889b51132d85901f867ab2f379711a734bc7b2edd309d74f3f7527eaaaebfd766d3737
HEAD_REF master
-)
+ )
+endif()
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})