Skip to content

Commit

Permalink
[libusb] Set host triplet for wasm32 (#35292)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Dec 5, 2023
1 parent 631ba72 commit 7201090
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ports/libusb/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
else()
vcpkg_list(SET MAKE_OPTIONS)
vcpkg_list(SET LIBUSB_LINK_LIBRARIES)
if(VCPKG_TARGET_IS_EMSCRIPTEN)
vcpkg_list(APPEND MAKE_OPTIONS BUILD_TRIPLET --host=wasm32)
endif()
if("udev" IN_LIST FEATURES)
vcpkg_list(APPEND MAKE_OPTIONS "--enable-udev")
vcpkg_list(APPEND LIBUSB_LINK_LIBRARIES udev)
Expand Down
2 changes: 1 addition & 1 deletion ports/libusb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libusb",
"version": "1.0.26.11791",
"port-version": 4,
"port-version": 5,
"description": "a cross-platform library to access USB devices",
"homepage": "https://github.com/libusb/libusb",
"license": "LGPL-2.1-or-later",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4970,7 +4970,7 @@
},
"libusb": {
"baseline": "1.0.26.11791",
"port-version": 4
"port-version": 5
},
"libusb-win32": {
"baseline": "1.2.6.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libusb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f4d325ede3cd1de2acd9a2d8f2708ec1e758cf0a",
"version": "1.0.26.11791",
"port-version": 5
},
{
"git-tree": "1e6400f24988b86ad461447df4eef8efc56a919f",
"version": "1.0.26.11791",
Expand Down

0 comments on commit 7201090

Please sign in to comment.