aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dxcam-cpp
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/dxcam-cpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dxcam-cpp')
-rw-r--r--vcpkg/ports/dxcam-cpp/portfile.cmake17
-rw-r--r--vcpkg/ports/dxcam-cpp/usage4
-rw-r--r--vcpkg/ports/dxcam-cpp/vcpkg.json24
3 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/dxcam-cpp/portfile.cmake b/vcpkg/ports/dxcam-cpp/portfile.cmake
new file mode 100644
index 0000000..5e1e299
--- /dev/null
+++ b/vcpkg/ports/dxcam-cpp/portfile.cmake
@@ -0,0 +1,17 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Fidelxyz/DXCam-CPP
+ HEAD_REF main
+ REF "v${VERSION}"
+ SHA512 f12e243d2d37557d34c9041faee7bc3c82e57084c58d3588ea69dc2a662aa278611d75250a86fa51f6a4c911d0744bdfa723258c7015b28a1759a8457f12fae5
+)
+
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/dxcam)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/dxcam-cpp/usage b/vcpkg/ports/dxcam-cpp/usage
new file mode 100644
index 0000000..653a93d
--- /dev/null
+++ b/vcpkg/ports/dxcam-cpp/usage
@@ -0,0 +1,4 @@
+dxcam-cpp provides CMake targets:
+
+ find_package(DXCam CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE DXCam::DXCam)
diff --git a/vcpkg/ports/dxcam-cpp/vcpkg.json b/vcpkg/ports/dxcam-cpp/vcpkg.json
new file mode 100644
index 0000000..2a3fe7e
--- /dev/null
+++ b/vcpkg/ports/dxcam-cpp/vcpkg.json
@@ -0,0 +1,24 @@
+{
+ "name": "dxcam-cpp",
+ "version": "0.2.4",
+ "maintainers": "Fidel Yin <fidel.yin@hotmail.com>",
+ "description": "A high performance screen capturing library for Windows rewriting DXcam in C++.",
+ "homepage": "https://github.com/Fidelxyz/DXCam-CPP",
+ "documentation": "https://dxcam-cpp.readthedocs.io/en/latest/",
+ "license": "MIT",
+ "supports": "windows & !uwp",
+ "dependencies": [
+ {
+ "name": "opencv4",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}