-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[treehopper] Fix dependence libusb #35480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
BillyONeal
merged 19 commits into
microsoft:master
from
FrankXie05:dev/Frank/treehopper_libusb
Dec 22, 2023
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
567f852
[treehopper] Fix dependence libusb
FrankXie05 8aceb09
version
FrankXie05 42402a4
remove ci.baseline.txt
FrankXie05 c519f22
update patch
FrankXie05 68a5bbb
use new function
FrankXie05 8aaf5a7
version
FrankXie05 d51178b
version
FrankXie05 a7c2aa5
update
FrankXie05 cf7ece0
Merge branch 'master' into dev/Frank/treehopper_libusb
FrankXie05 29cf9d6
update patch
FrankXie05 0d657fe
version
FrankXie05 5134e88
Merge branch 'dev/Frank/treehopper_libusb' of https://github.com/Fran…
FrankXie05 a769c73
merge master
FrankXie05 0912edb
version
FrankXie05 31f91c4
update patch
FrankXie05 43e6982
version
FrankXie05 d95856c
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal 94f03d0
Guard the libusb dependency for Linux.
BillyONeal 8a817d2
Block UWP formerly blocked by the dependency on libusb..
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| diff --git a/C++/API/CMakeLists.txt b/C++/API/CMakeLists.txt | ||
| index 8537305..db3d29b 100644 | ||
| --- a/C++/API/CMakeLists.txt | ||
| +++ b/C++/API/CMakeLists.txt | ||
| @@ -37,7 +37,10 @@ if(APPLE) | ||
| find_library(IOKIT IOKit) | ||
| target_link_libraries(treehopper pthread ${CORE_FOUNDATION} ${IOKIT}) | ||
| elseif(UNIX) | ||
| - target_link_libraries(treehopper usb-1.0 pthread) | ||
| + find_package(PkgConfig REQUIRED) | ||
| + pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0) | ||
| + | ||
| + target_link_libraries(treehopper PRIVATE PkgConfig::libusb pthread) | ||
| elseif(WIN32) | ||
| target_link_libraries(treehopper winusb setupapi) | ||
| endif(APPLE) | ||
| diff --git a/C++/API/inc/ConnectionService.h b/C++/API/inc/ConnectionService.h | ||
| index 66d338e..12a0192 100644 | ||
| --- a/C++/API/inc/ConnectionService.h | ||
| +++ b/C++/API/inc/ConnectionService.h | ||
| @@ -8,7 +8,7 @@ | ||
| #include <CoreFoundation/CFRunLoop.h> | ||
| #endif | ||
| #ifdef __linux__ | ||
| -#include "libusb-1.0/libusb.h" | ||
| +#include "libusb.h" | ||
| #endif | ||
| #include <vector> | ||
|
|
||
| diff --git a/C++/API/inc/LibUsbConnection.h b/C++/API/inc/LibUsbConnection.h | ||
| index b6d5198..e9cd29e 100644 | ||
| --- a/C++/API/inc/LibUsbConnection.h | ||
| +++ b/C++/API/inc/LibUsbConnection.h | ||
| @@ -6,7 +6,7 @@ | ||
|
|
||
| #include "Treehopper.h" | ||
|
|
||
| -#include <libusb-1.0/libusb.h> | ||
| +#include <libusb.h> | ||
| #include "UsbConnection.h" | ||
|
|
||
| namespace Treehopper { | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.