diff --git a/ports/hidapi/portfile.cmake b/ports/hidapi/portfile.cmake index 212d585934..12d98903a4 100644 --- a/ports/hidapi/portfile.cmake +++ b/ports/hidapi/portfile.cmake @@ -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) diff --git a/ports/hidapi/vcpkg.json b/ports/hidapi/vcpkg.json index 3bb2b328aa..5473ce745c 100644 --- a/ports/hidapi/vcpkg.json +++ b/ports/hidapi/vcpkg.json @@ -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" + } + } } diff --git a/versions/baseline.json b/versions/baseline.json index f653e32414..ae5a0aa095 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3121,7 +3121,7 @@ "port-version": 0 }, "hidapi": { - "baseline": "0.13.1", + "baseline": "0.14.0", "port-version": 0 }, "highfive": { diff --git a/versions/h-/hidapi.json b/versions/h-/hidapi.json index 22044b723f..343bc28221 100644 --- a/versions/h-/hidapi.json +++ b/versions/h-/hidapi.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "ef7fae56bd9bec8a3b50d4ab3f87ba7537ea330b", + "version-semver": "0.14.0", + "port-version": 0 + }, { "git-tree": "7deb8cf068244c5583ce565bf1d302b369ed622b", "version-semver": "0.13.1",