Skip to content

Commit 21816e0

Browse files
authored
[dxcam-cpp] Add new port (#44562)
1 parent 2f684c8 commit 21816e0

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

ports/dxcam-cpp/portfile.cmake

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO Fidelxyz/DXCam-CPP
4+
HEAD_REF main
5+
REF "v${VERSION}"
6+
SHA512 cd8463a687030da020ffaa8c8438c90185f4bf41f14b50e72ba3aea695828dd12c52e249d290ad0f0fdc1e1109a8a800d9ddf954e38037ff9da90d9ab5fa01cc
7+
)
8+
9+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
10+
vcpkg_cmake_install()
11+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/dxcam)
12+
vcpkg_copy_pdbs()
13+
14+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
15+
16+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
17+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/dxcam-cpp/usage

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dxcam-cpp provides CMake targets:
2+
3+
find_package(DXCam CONFIG REQUIRED)
4+
target_link_libraries(main PRIVATE DXCam::DXCam)

ports/dxcam-cpp/vcpkg.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "dxcam-cpp",
3+
"version": "0.2.1",
4+
"maintainers": "Fidel Yin <[email protected]>",
5+
"description": "A high performance screen capturing library for Windows rewriting DXcam in C++.",
6+
"homepage": "https://github.com/Fidelxyz/DXCam-CPP",
7+
"documentation": "https://dxcam-cpp.readthedocs.io/en/latest/",
8+
"license": "MIT",
9+
"supports": "windows & !uwp",
10+
"dependencies": [
11+
{
12+
"name": "opencv4",
13+
"default-features": false
14+
},
15+
{
16+
"name": "vcpkg-cmake",
17+
"host": true
18+
},
19+
{
20+
"name": "vcpkg-cmake-config",
21+
"host": true
22+
}
23+
]
24+
}

versions/baseline.json

+4
Original file line numberDiff line numberDiff line change
@@ -2472,6 +2472,10 @@
24722472
"baseline": "1.0.1",
24732473
"port-version": 3
24742474
},
2475+
"dxcam-cpp": {
2476+
"baseline": "0.2.1",
2477+
"port-version": 0
2478+
},
24752479
"dxsdk-d3dx": {
24762480
"baseline": "9.29.952.8",
24772481
"port-version": 7

versions/d-/dxcam-cpp.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "425578cede23b8c1f4773599edace2e56adb0ade",
5+
"version": "0.2.1",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)