Skip to content

Commit

Permalink
Guard the libusb dependency for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Dec 20, 2023
1 parent d95856c commit 94f03d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ports/treehopper/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO treehopper-electronics/treehopper-sdk
REF ${VERSION}
REF "${VERSION}"
SHA512 65b748375b798787c8b59f9657151f340920c939c3f079105b9b78f4e3b775125598106c6dfa4feba111a64d30f007003a70110ac767802a7dd1127a25c9fb14
HEAD_REF master
PATCHES
Expand All @@ -22,4 +22,3 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${SOURCE_PATH}/C++/API/inc/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/Treehopper/")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

5 changes: 4 additions & 1 deletion ports/treehopper/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"homepage": "https://treehopper.io",
"supports": "!staticcrt",
"dependencies": [
"libusb",
{
"name": "libusb",
"platform": "linux"
},
{
"name": "vcpkg-cmake",
"host": true
Expand Down
2 changes: 1 addition & 1 deletion versions/t-/treehopper.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "8080a3cb8e29113edc342599b28abde6fcf44fab",
"git-tree": "36bae0eb80724eaefece77807a3176fe1a79aaa3",
"version": "1.11.3",
"port-version": 9
},
Expand Down

0 comments on commit 94f03d0

Please sign in to comment.