aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tinyxml2/portfile.cmake
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/tinyxml2/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tinyxml2/portfile.cmake')
-rw-r--r--vcpkg/ports/tinyxml2/portfile.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/tinyxml2/portfile.cmake b/vcpkg/ports/tinyxml2/portfile.cmake
new file mode 100644
index 0000000..debc19c
--- /dev/null
+++ b/vcpkg/ports/tinyxml2/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO leethomason/tinyxml2
+ REF "${VERSION}"
+ SHA512 8a6ddd48c96bc4287437d5b5ca62c131c4416c57310b664c9088ca9c1ac9f4d43d16c1bad03f82dc5588d9486752f510d631609a3930f1d4243f12184ad1c5f9
+ HEAD_REF master
+ PATCHES
+ 0001-fix-do-not-force-export-the-symbols-when-building-st.patch
+ 0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dtinyxml2_BUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tinyxml2)
+vcpkg_fixup_pkgconfig()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)