aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/presentmon/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/presentmon/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/presentmon/portfile.cmake')
-rw-r--r--vcpkg/ports/presentmon/portfile.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/presentmon/portfile.cmake b/vcpkg/ports/presentmon/portfile.cmake
new file mode 100644
index 0000000..d9432e8
--- /dev/null
+++ b/vcpkg/ports/presentmon/portfile.cmake
@@ -0,0 +1,32 @@
+# The upstream doesn't export any symbols
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO GameTechDev/PresentMon
+ REF "v${VERSION}"
+ SHA512 1c606dd53a05b88a500a2deeb7099ce3cf0e9edfdf6ce8f9a1a91efecf9049bf700368066cbafc1e196f4bf8a6e43da86a2f10ad0843b582ab851e366a33eda4
+ HEAD_REF main
+)
+
+file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ tools BUILD_TOOLS
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS ${FEATURE_OPTIONS}
+ OPTIONS_DEBUG
+ -DINSTALL_HEADERS=OFF
+)
+
+vcpkg_cmake_install()
+
+if("tools" IN_LIST FEATURES)
+ vcpkg_copy_tools(TOOL_NAMES presentmon AUTO_CLEAN)
+endif()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")