-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[treehopper] Fix dependence libusb #35480
Merged
BillyONeal
merged 19 commits into
microsoft:master
from
FrankXie05:dev/Frank/treehopper_libusb
Dec 22, 2023
Merged
Changes from 3 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 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,15 @@ | ||||||
diff --git a/C++/API/CMakeLists.txt b/C++/API/CMakeLists.txt | ||||||
index 8537305..612cf7d 100644 | ||||||
--- a/C++/API/CMakeLists.txt | ||||||
+++ b/C++/API/CMakeLists.txt | ||||||
@@ -37,7 +37,9 @@ 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(libusb CONFIG REQUIRED) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There is no config, so don't hard-code it. (There is not even a find module. Just a vcpkg wrapper.) |
||||||
+ target_include_directories(treehopper PRIVATE ${LIBUSB_INCLUDE_DIRS}) | ||||||
+ target_link_libraries(treehopper PRIVATE ${LIBUSB_LIBRARIES} pthread) | ||||||
elseif(WIN32) | ||||||
target_link_libraries(treehopper winusb setupapi) | ||||||
endif(APPLE) |
This file contains 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 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR IMO this should also be patched, to decouple cached artifacts from local SDK paths. Untested:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to change the behavior of upstream: