Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ports/dxcam-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Fidelxyz/DXCam-CPP
HEAD_REF main
REF "v${VERSION}"
SHA512 cd8463a687030da020ffaa8c8438c90185f4bf41f14b50e72ba3aea695828dd12c52e249d290ad0f0fdc1e1109a8a800d9ddf954e38037ff9da90d9ab5fa01cc
)

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")
4 changes: 4 additions & 0 deletions ports/dxcam-cpp/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dxcam-cpp provides CMake targets:

find_package(DXCam CONFIG REQUIRED)
target_link_libraries(main PRIVATE DXCam::DXCam)
Comment on lines +3 to +4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder that this is too much indent.

24 changes: 24 additions & 0 deletions ports/dxcam-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "dxcam-cpp",
"version": "0.2.1",
"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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2468,6 +2468,10 @@
"baseline": "1.0.1",
"port-version": 3
},
"dxcam-cpp": {
"baseline": "0.2.1",
"port-version": 0
},
"dxsdk-d3dx": {
"baseline": "9.29.952.8",
"port-version": 7
Expand Down
9 changes: 9 additions & 0 deletions versions/d-/dxcam-cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "425578cede23b8c1f4773599edace2e56adb0ade",
"version": "0.2.1",
"port-version": 0
}
]
}