aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tgui/devendor-stb.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tgui/devendor-stb.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tgui/devendor-stb.patch')
-rw-r--r--vcpkg/ports/tgui/devendor-stb.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/tgui/devendor-stb.patch b/vcpkg/ports/tgui/devendor-stb.patch
new file mode 100644
index 0000000..2042676
--- /dev/null
+++ b/vcpkg/ports/tgui/devendor-stb.patch
@@ -0,0 +1,41 @@
+diff --git a/include/TGUI/extlibs/IncludeStbImage.hpp b/include/TGUI/extlibs/IncludeStbImage.hpp
+index e19cccb..79d0f0c 100644
+--- a/include/TGUI/extlibs/IncludeStbImage.hpp
++++ b/include/TGUI/extlibs/IncludeStbImage.hpp
+@@ -64,7 +64,7 @@
+ #else
+ # define STB_IMAGE_STATIC
+ # define STB_IMAGE_IMPLEMENTATION
+-# include <TGUI/extlibs/stb/stb_image.h>
++# include <stb_image.h>
+ #endif
+
+ #if defined(__GNUC__)
+diff --git a/include/TGUI/extlibs/IncludeStbImageWrite.hpp b/include/TGUI/extlibs/IncludeStbImageWrite.hpp
+index 2e23a5b..97ce878 100644
+--- a/include/TGUI/extlibs/IncludeStbImageWrite.hpp
++++ b/include/TGUI/extlibs/IncludeStbImageWrite.hpp
+@@ -52,7 +52,7 @@
+ #else
+ # define STB_IMAGE_WRITE_STATIC
+ # define STB_IMAGE_WRITE_IMPLEMENTATION
+-# include <TGUI/extlibs/stb/stb_image_write.h>
++# include <stb_image_write.h>
+ #endif
+
+ #if defined(__GNUC__)
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6a08458..c575036 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -225,6 +225,10 @@ else()
+ set_target_properties(tgui PROPERTIES MINSIZEREL_POSTFIX -s)
+ set_target_properties(tgui PROPERTIES RELWITHDEBINFO_POSTFIX -s)
+ endif()
++find_path(STB_INCLUDE_DIR stb_image.h REQUIRED)
++target_include_directories(tgui PRIVATE "${STB_INCLUDE_DIR}")
++find_path(TGUI_SYSTEM_STB_IMAGE_WRITE_INCLUDE_DIR stb_image_write.h REQUIRED)
++target_include_directories(tgui SYSTEM PRIVATE "${TGUI_SYSTEM_STB_IMAGE_WRITE_INCLUDE_DIR}")
+
+ if (TGUI_BUILD_AS_CXX_MODULE)
+ target_sources(tgui