aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pugixml
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/pugixml
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/pugixml')
-rw-r--r--vcpkg/ports/pugixml/portfile.cmake29
-rw-r--r--vcpkg/ports/pugixml/vcpkg.json23
2 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/pugixml/portfile.cmake b/vcpkg/ports/pugixml/portfile.cmake
new file mode 100644
index 0000000..af544df
--- /dev/null
+++ b/vcpkg/ports/pugixml/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO zeux/pugixml
+ REF "v${VERSION}"
+ SHA512 b8a70f1f230b0902b719346ce0a551eafe534f81262280dceeb92d5ad90ea4e635173e08e225bf66eb5f4724ac4568bd40dc923f184571f02502dac49bc0b7f5
+ HEAD_REF master
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ compact PUGIXML_COMPACT
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DPUGIXML_BUILD_TESTS=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/pugixml/vcpkg.json b/vcpkg/ports/pugixml/vcpkg.json
new file mode 100644
index 0000000..ec00a8d
--- /dev/null
+++ b/vcpkg/ports/pugixml/vcpkg.json
@@ -0,0 +1,23 @@
+{
+ "name": "pugixml",
+ "version": "1.15",
+ "port-version": 1,
+ "description": "Light-weight, simple and fast XML parser for C++ with XPath support",
+ "homepage": "https://github.com/zeux/pugixml",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "compact": {
+ "description": "Enable compact memory mode (reduces memory consumption at the cost of performance)"
+ }
+ }
+}