[hidapi] Cleanup (#45826)

This commit is contained in:
Kai Pastor 2025-06-04 10:57:04 +02:00 committed by GitHub
parent 3421943bfd
commit 378e382ffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 6 deletions

View File

@ -13,8 +13,14 @@ FEATURES
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS -DHIDAPI_BUILD_HIDTEST=OFF
${FEATURE_OPTIONS}
OPTIONS
-DHIDAPI_BUILD_HIDTEST=OFF
-DHIDAPI_WITH_TESTS=OFF
${FEATURE_OPTIONS}
MAYBE_UNUSED_VARIABLES
# Windows only
HIDAPI_BUILD_PP_DATA_DUMP
HIDAPI_WITH_TESTS
)
vcpkg_cmake_install()
@ -26,8 +32,7 @@ if ("pp-data-dump" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES pp_data_dump AUTO_CLEAN)
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/hidapi/libhidapi.cmake" "\"/hidapi\"" "\"\${_IMPORT_PREFIX}/include\"" IGNORE_UNCHANGED)
file(INSTALL "${SOURCE_PATH}/LICENSE-bsd.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-bsd.txt")

View File

@ -1,6 +1,7 @@
{
"name": "hidapi",
"version-semver": "0.15.0",
"port-version": 1,
"description": "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows.",
"homepage": "https://github.com/libusb/hidapi",
"license": "BSD-3-Clause-Clear",

View File

@ -3646,7 +3646,7 @@
},
"hidapi": {
"baseline": "0.15.0",
"port-version": 0
"port-version": 1
},
"highfive": {
"baseline": "2.10.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0558e761081a4375658a5b5c19396b152d10593a",
"version-semver": "0.15.0",
"port-version": 1
},
{
"git-tree": "f535ab7a651061deb941e5663f161e07ed903cf4",
"version-semver": "0.15.0",