diff options
Diffstat (limited to 'ports/libigl')
| -rw-r--r-- | ports/libigl/CONTROL | 4 | ||||
| -rw-r--r-- | ports/libigl/fix-dependency.patch | 11 | ||||
| -rw-r--r-- | ports/libigl/fix-imgui-set-cond.patch | 26 | ||||
| -rw-r--r-- | ports/libigl/portfile.cmake | 8 |
4 files changed, 37 insertions, 12 deletions
diff --git a/ports/libigl/CONTROL b/ports/libigl/CONTROL index 496f73570..3b2304002 100644 --- a/ports/libigl/CONTROL +++ b/ports/libigl/CONTROL @@ -15,11 +15,11 @@ Build-Depends: opengl, glad Feature: glfw Description: Build with glfw -Build-Depends: glfw3 +Build-Depends: libigl[opengl], glfw3 Feature: imgui Description: Build with imgui -Build-Depends: imgui[bindings] +Build-Depends: libigl[glfw], imgui[glfw-binding, opengl3-glew-binding, libigl-imgui] Feature: xml Description: Build with libxml diff --git a/ports/libigl/fix-dependency.patch b/ports/libigl/fix-dependency.patch index e891e341e..fad85af0a 100644 --- a/ports/libigl/fix-dependency.patch +++ b/ports/libigl/fix-dependency.patch @@ -146,18 +146,15 @@ diff --git a/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp b/include/igl/opengl/gl index 47de487..6c607de 100644 --- a/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp +++ b/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp -@@ -9,10 +9,10 @@ +@@ -9,9 +9,9 @@ #include "ImGuiMenu.h" #include "ImGuiHelpers.h" #include <igl/project.h> -#include <imgui/imgui.h> --#include <imgui_impl_glfw.h> --#include <imgui_impl_opengl3.h> --#include <imgui_fonts_droid_sans.h> +#include <imgui.h> -+#include <bindings/imgui_impl_glfw.h> -+#include <bindings/imgui_impl_opengl3.h> -+#include <bindings/imgui_fonts_droid_sans.h> + #include <imgui_impl_glfw.h> + #include <imgui_impl_opengl3.h> + #include <imgui_fonts_droid_sans.h> #include <GLFW/glfw3.h> #include <iostream> //////////////////////////////////////////////////////////////////////////////// diff --git a/ports/libigl/fix-imgui-set-cond.patch b/ports/libigl/fix-imgui-set-cond.patch new file mode 100644 index 000000000..964f6f3f4 --- /dev/null +++ b/ports/libigl/fix-imgui-set-cond.patch @@ -0,0 +1,26 @@ +diff --git a/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp b/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp
+index 47de4870..7e6f13a8 100644
+--- a/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp
++++ b/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp
+@@ -167,8 +167,8 @@ IGL_INLINE void ImGuiMenu::draw_menu()
+ IGL_INLINE void ImGuiMenu::draw_viewer_window()
+ {
+ float menu_width = 180.f * menu_scaling();
+- ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f), ImGuiSetCond_FirstUseEver);
+- ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f), ImGuiSetCond_FirstUseEver);
++ ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
++ ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
+ ImGui::SetNextWindowSizeConstraints(ImVec2(menu_width, -1.0f), ImVec2(menu_width, -1.0f));
+ bool _viewer_menu_visible = true;
+ ImGui::Begin(
+@@ -310,8 +310,8 @@ IGL_INLINE void ImGuiMenu::draw_viewer_menu()
+ IGL_INLINE void ImGuiMenu::draw_labels_window()
+ {
+ // Text labels
+- ImGui::SetNextWindowPos(ImVec2(0,0), ImGuiSetCond_Always);
+- ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize, ImGuiSetCond_Always);
++ ImGui::SetNextWindowPos(ImVec2(0,0), ImGuiCond_Always);
++ ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize, ImGuiCond_Always);
+ bool visible = true;
+ ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0,0,0,0));
+ ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0);
diff --git a/ports/libigl/portfile.cmake b/ports/libigl/portfile.cmake index d3e342b5b..063f5a723 100644 --- a/ports/libigl/portfile.cmake +++ b/ports/libigl/portfile.cmake @@ -8,7 +8,9 @@ vcpkg_from_github( REF 3cb4894eaf8ea4610467189ca292be349425d44b #2.2.0 SHA512 339f96e36b6a99ae8301ec2e234e18cecba7b7c42289ed68a26c20b279dce3135405f9b49e292c321fba962d56c083ae61831057bec9a19ad1495e2afa379b8b HEAD_REF master - PATCHES fix-dependency.patch + PATCHES + fix-dependency.patch + fix-imgui-set-cond.patch ) set(LIBIGL_BUILD_STATIC OFF) @@ -16,9 +18,9 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static) set(LIBIGL_BUILD_STATIC ON) endif() -if ("imgui" IN_LIST FEATURES AND VCPKG_LIBRARY_LINKAGE STREQUAL static) +if ("imgui" IN_LIST FEATURES AND NOT VCPKG_LIBRARY_LINKAGE STREQUAL static) # Remove this after add port libigl-imgui - message(FATAL_ERROR "Feature imgui does not support static build currentlly") + message(FATAL_ERROR "Feature imgui does not support non-static build currently") endif() if ("test" IN_LIST FEATURES AND NOT EXISTS ${SOURCE_PATH}/tests/data) |
