[hidapi] Update to 0.14.0 (#31574)

* Updated hidapi to 0.14.0
Added new feature pp-data-dump, to make the build of the new pp_data_dump.exe developer tool optional

* Use vcpkg_copy_tools for pp_data_dump

* Removed unnecessary added empty lines from portfile

* Use ${VERSION} variable in portfile instead of hardcoded version number
This commit is contained in:
JoergAtGithub 2023-05-24 21:03:18 +02:00 committed by GitHub
parent 28d4723662
commit f5b0415c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 5 deletions

View File

@ -1,14 +1,20 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libusb/hidapi
REF hidapi-0.13.1
SHA512 07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53
REF hidapi-${VERSION}
SHA512 66a045144f90b41438898b82f0398e80223323ebfe6e4f197d2713696bb3ae60f36aea5a37a9999b34b12294783fd7e4c28c6e785462559cbe21276009da1eac
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"pp-data-dump" HIDAPI_BUILD_PP_DATA_DUMP
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS -DHIDAPI_BUILD_HIDTEST=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
@ -16,6 +22,10 @@ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
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\"")
file(INSTALL "${SOURCE_PATH}/LICENSE-bsd.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,6 +1,6 @@
{
"name": "hidapi",
"version-semver": "0.13.1",
"version-semver": "0.14.0",
"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",
@ -18,5 +18,11 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"pp-data-dump": {
"description": "Build pp_data_dump.exe tool, to store WIN32 HidD Preparsed Data as file",
"supports": "windows"
}
}
}

View File

@ -3121,7 +3121,7 @@
"port-version": 0
},
"hidapi": {
"baseline": "0.13.1",
"baseline": "0.14.0",
"port-version": 0
},
"highfive": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ef7fae56bd9bec8a3b50d4ab3f87ba7537ea330b",
"version-semver": "0.14.0",
"port-version": 0
},
{
"git-tree": "7deb8cf068244c5583ce565bf1d302b369ed622b",
"version-semver": "0.13.1",