aboutsummaryrefslogtreecommitdiff
path: root/ports/libusb
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-09-11 04:41:46 +0800
committerGitHub <noreply@github.com>2021-09-10 13:41:46 -0700
commite8e660a36c6aabc788d0cb03c5b38b7df6edbb22 (patch)
tree4efcd3b6e85e33e451321d39fe3229398aaf86d0 /ports/libusb
parente0aee0ddcfdab86b4f7d28371f7923fa948599d3 (diff)
downloadvcpkg-e8e660a36c6aabc788d0cb03c5b38b7df6edbb22.tar.gz
vcpkg-e8e660a36c6aabc788d0cb03c5b38b7df6edbb22.zip
[vcpkg baseline][pangolin] Add features, fix dependency pybind11 (#20006)
* [vcpkg baseline][pangolin] Add features, fix dependency pybind11 * Fix dependency name realsense2 * Remove default-feature gles * Re-generated patch, add MAYBE_UNUSED_VARIABLES, fix build with core * version * Fix desc, add more MAYBE_UNUSED_VARIABLES * version * more MAYBE_UNUSED_VARIABLES * version * Remove some CMAKE_DISABLE_FIND_PACKAGE_* * version * Remove more CMAKE_DISABLE_FIND_* since they are disabled * Remove BUILD_FOR_GLES_2 * version * Restore BUILD_FOR_GLES_2 * version * Fix more dependencies * [libuvc]Fix build type, fix usage * version * Re-make patch * version * Use libjpeg macros instead of target name to avoid use `find_dependency` * version * Fix usage on non-Windows * version * commit suggestions * version * Apply suggestion * version * Re-fix JPEG * version * typo * format * version Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports/libusb')
-rw-r--r--ports/libusb/portfile.cmake2
-rw-r--r--ports/libusb/vcpkg-cmake-wrapper.cmake4
-rw-r--r--ports/libusb/vcpkg.json2
3 files changed, 6 insertions, 2 deletions
diff --git a/ports/libusb/portfile.cmake b/ports/libusb/portfile.cmake
index 153dedf13..3aed72d2a 100644
--- a/ports/libusb/portfile.cmake
+++ b/ports/libusb/portfile.cmake
@@ -58,5 +58,5 @@ else()
endif()
configure_file(${CURRENT_PORT_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)
-file(INSTALL ${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+configure_file(${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libusb/vcpkg-cmake-wrapper.cmake b/ports/libusb/vcpkg-cmake-wrapper.cmake
index 8f0f35811..61f9d54ba 100644
--- a/ports/libusb/vcpkg-cmake-wrapper.cmake
+++ b/ports/libusb/vcpkg-cmake-wrapper.cmake
@@ -8,3 +8,7 @@ select_library_configurations(LIBUSB)
set(LIBUSB_INCLUDE_DIRS ${LIBUSB_INCLUDE_DIR})
set(LIBUSB_LIBRARIES ${LIBUSB_LIBRARY})
+
+if (@VCPKG_TARGET_IS_LINUX@)
+ list(APPEND LIBUSB_LIBRARIES udev)
+endif()
diff --git a/ports/libusb/vcpkg.json b/ports/libusb/vcpkg.json
index 5649425e8..07bbd2d8b 100644
--- a/ports/libusb/vcpkg.json
+++ b/ports/libusb/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "libusb",
"version": "1.0.24",
- "port-version": 4,
+ "port-version": 5,
"description": "a cross-platform library to access USB devices",
"homepage": "https://github.com/libusb/libusb",
"supports": "!uwp"