mirror of https://github.com/microsoft/vcpkg.git
[hidapi] Cleanup (#45826)
This commit is contained in:
parent
3421943bfd
commit
378e382ffe
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -3646,7 +3646,7 @@
|
|||
},
|
||||
"hidapi": {
|
||||
"baseline": "0.15.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"highfive": {
|
||||
"baseline": "2.10.1",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "0558e761081a4375658a5b5c19396b152d10593a",
|
||||
"version-semver": "0.15.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "f535ab7a651061deb941e5663f161e07ed903cf4",
|
||||
"version-semver": "0.15.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue