-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Include TM2 firmware directly #3647
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
84f0f8d
tm2: put operator<< in perc:: or clang can't find it
radfordi babf076
Use override consistently
radfordi f730c43
Use extra parens for assignments within if's to avoid warning
radfordi a87d4bb
using libuvc is not a warning, but a status
radfordi 4e212a7
Remove the need for USE_SYSTEM_LIBUSB
radfordi 6e0a0b0
Use installed glfw if available
radfordi 0e1a354
Fix third-party/libusb build on a Mac
radfordi f5fa91e
Update libusb to fix get_device_list hang
radfordi a3cee5c
rs-pose is not graphical
radfordi 6f61fd0
Use CMAKE_CXX_STANDARD instead of open coding it
radfordi 787836b
Remove obsolete FindLibUSB.cmake and Findlibtm.cmake
radfordi 1ac2cb8
Create a consistent usb target on every platform
radfordi ba320fb
Detect libusb generically for all platforms
radfordi 5e09bec
Remove obsolete apple_config.cmake
radfordi 895e734
Fix typo in central app version parsing
radfordi acf294f
Avoid creating version files in the source directory
radfordi 9db097a
Match GCC diagnostic push with pop in libuvc
radfordi 8053c1f
Add an install target of system libusb interface
radfordi 78663df
Avoid trigging new builds of internal libusb
radfordi 45b06bd
Remove pointless cmake messages from libtm
radfordi 42cdafd
Avoid code page warnings for external project libusb
radfordi a57d214
Let libtm export its own include directory
radfordi 2718030
Add parenthesis to macro arguments to avoid precedence issues
radfordi 7ec1b01
Use extra parens for assignments within if's to avoid warning
radfordi 036b8f2
Avoid non-standard fourcc C syntax
radfordi 418f5f1
Append CMake/ to the module path so we can include from any directory
radfordi d9b8097
Include libusb_config on demand instead of globally
radfordi cc00611
Include android_config in preference to windows_config or unix_config
radfordi b97f707
Include libtm firmware directly as binary
radfordi 585b08b
Resources don't get picked up from static libraries with out an expli…
1cd948f
Remove old libtm firwmare header generation
radfordi 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
if (WIN32) | ||
include(CMake/windows_config.cmake) | ||
endif() | ||
|
||
if(UNIX) | ||
include(CMake/unix_config.cmake) | ||
endif() | ||
|
||
if(ANDROID_NDK_TOOLCHAIN_INCLUDED) | ||
include(CMake/android_config.cmake) | ||
endif() | ||
if(ANDROID_NDK_TOOLCHAIN_INCLUDED) | ||
include(CMake/android_config.cmake) | ||
elseif (WIN32) | ||
include(CMake/windows_config.cmake) | ||
else() | ||
include(CMake/unix_config.cmake) | ||
endif() |
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,14 @@ | ||
if (NOT TARGET usb) | ||
find_library(LIBUSB_LIB usb-1.0) | ||
find_path(LIBUSB_INC libusb.h HINTS PATH_SUFFIXES libusb-1.0) | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(usb "libusb not found; using internal version" LIBUSB_LIB LIBUSB_INC) | ||
if (USB_FOUND) | ||
add_library(usb INTERFACE) | ||
target_include_directories(usb INTERFACE ${LIBUSB_INC}) | ||
target_link_libraries(usb INTERFACE ${LIBUSB_LIB}) | ||
else() | ||
include(CMake/external_libusb.cmake) | ||
endif() | ||
install(TARGETS usb EXPORT realsense2Targets) | ||
endif() |
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.
can't it be moved to
apple_config
?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.
This is really part of the exported interface of
libusb
, so I think it should stay in alibusb
specific place. Normally this would come from atarget_*
function if we were actually compilinglibusb
, an installed cmake file, or apkg-config
file, but since we are using an "external project" without installation, we need to do it ourselves.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.
Also, I removed (cc40ab3)
apple_config.cmake
as it wasn't being used. :)