-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[duvc-ctl] Add new port v2.0.1#0 #49291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+81
−0
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO allanhanan/duvc-ctl | ||
| REF "v${VERSION}" | ||
| SHA512 5cc63ef7c3a46fb351015ae2b1b96837ea46dbb7656ab1cf633af6027d32ae447dfc60a8757677eae07dabfb3ec1aca90f7019a6d7b5344c66324d39e9f0c464 | ||
| HEAD_REF main | ||
| ) | ||
|
|
||
| if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") | ||
| set(DUVC_BUILD_SHARED ON) | ||
| set(DUVC_BUILD_STATIC OFF) | ||
| else() | ||
| set(DUVC_BUILD_SHARED OFF) | ||
| set(DUVC_BUILD_STATIC ON) | ||
| endif() | ||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS | ||
| -DDUVC_BUILD_SHARED=${DUVC_BUILD_SHARED} | ||
| -DDUVC_BUILD_STATIC=${DUVC_BUILD_STATIC} | ||
| -DDUVC_BUILD_C_API=OFF | ||
| -DDUVC_BUILD_CLI=OFF | ||
| -DDUVC_BUILD_TESTS=OFF | ||
| -DDUVC_BUILD_EXAMPLES=OFF | ||
| -DDUVC_BUILD_PYTHON=OFF | ||
| -DDUVC_BUILD_DOCS=OFF | ||
| -DDUVC_INSTALL=ON | ||
| -DDUVC_INSTALL_CMAKE_CONFIG=ON | ||
| ) | ||
|
|
||
| vcpkg_cmake_install() | ||
|
|
||
| vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/duvc-ctl") | ||
| vcpkg_fixup_pkgconfig() | ||
|
|
||
|
|
||
| vcpkg_copy_pdbs() | ||
|
|
||
| if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| endif() | ||
| if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/share") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
| endif() | ||
|
|
||
| file(INSTALL "${SOURCE_PATH}/LICENSE" | ||
| DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" | ||
| RENAME copyright) | ||
|
|
||
| file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" | ||
| DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| duvc-ctl provides CMake targets: | ||
|
|
||
| find_package(duvc CONFIG REQUIRED) | ||
|
|
||
| for static linking: | ||
|
|
||
| target_link_libraries(main PRIVATE duvc::core-static) | ||
|
|
||
| Or for shared linking: | ||
|
|
||
| target_link_libraries(main PRIVATE duvc::core-shared) | ||
vicroms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", | ||
| "name": "duvc-ctl", | ||
| "version": "2.0.1", | ||
| "description": "Windows DirectShow UVC camera control library", | ||
| "homepage": "https://github.com/allanhanan/duvc-ctl", | ||
| "license": "MIT", | ||
| "supports": "windows & !uwp", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "97dd1e5a642ee69388849c84db7aaa522d3af4a6", | ||
| "version": "2.0.1", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.