Skip to content

Commit 152bf59

Browse files
committed
add thirdparty libusb
1 parent c02e30f commit 152bf59

File tree

108 files changed

+46472
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+46472
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,4 @@ librealsense-log.txt
8888
*.ini
8989
*.cxx
9090

91-
.vscode/*
92-
third-party/libusb/*
91+
.vscode/*

third-party/libusb/AUTHORS

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
Copyright © 2001 Johannes Erdfelt <[email protected]>
2+
Copyright © 2007-2009 Daniel Drake <[email protected]>
3+
Copyright © 2010-2012 Peter Stuge <[email protected]>
4+
Copyright © 2008-2016 Nathan Hjelm <[email protected]>
5+
Copyright © 2009-2013 Pete Batard <[email protected]>
6+
Copyright © 2009-2013 Ludovic Rousseau <[email protected]>
7+
Copyright © 2010-2012 Michael Plante <[email protected]>
8+
Copyright © 2011-2013 Hans de Goede <[email protected]>
9+
Copyright © 2012-2013 Martin Pieuchot <[email protected]>
10+
Copyright © 2012-2013 Toby Gray <[email protected]>
11+
Copyright © 2013-2018 Chris Dickens <[email protected]>
12+
13+
Other contributors:
14+
Aaron Luft
15+
Adam Korcz
16+
Adrian Bunk
17+
Adrien Destugues
18+
Akshay Jaggi
19+
Alan Ott
20+
Alan Stern
21+
Aleksandr Mezin
22+
Alexander Pyhalov
23+
Alexander Schlarb
24+
Alexander Stein
25+
Alex Vatchenko
26+
Andrew Aldridge
27+
Andrew Fernandes
28+
Andrew Goodney
29+
Andy Chunyu
30+
Andy McFadden
31+
Angus Gratton
32+
Anil Nair
33+
Ankur Verma
34+
Anthony Clay
35+
Antonio Ospite
36+
Artem Egorkine
37+
Aurelien Jarno
38+
Axel Gembe
39+
Aymeric Vincent
40+
Baruch Siach
41+
Bastien Nocera
42+
Bei Zhang
43+
Bence Csokas
44+
Benjamin Berg
45+
Benjamin Dobell
46+
Bohdan Tymkiv
47+
Brent Rector
48+
Bruno Harbulot
49+
Carl Karsten
50+
Christophe Zeitouny
51+
Chris Zhu
52+
Chunyu Xie
53+
Colin Walters
54+
Craig Hutchinson
55+
Dave Camarillo
56+
David Engraf
57+
Davidlohr Bueso
58+
David Moore
59+
Dmitry Fleytman
60+
Dmitry Kostjuchenko
61+
Dmitry Zakablukov
62+
Doug Johnston
63+
Evan Hunter
64+
Evan Miller
65+
Fabrice Fontaine
66+
Federico Manzan
67+
Felipe Balbi
68+
Florian Albrechtskirchinger
69+
Francesco Montorsi
70+
Francisco Facioni
71+
Frank Li
72+
Frederik Carlier
73+
Freek Dijkstra
74+
Gaurav Gupta
75+
Graeme Gill
76+
Greg Kroah-Hartman
77+
Gustavo Zacarias
78+
Haidong Zheng
79+
Hans Ulrich Niedermann
80+
Harry Mallon
81+
Hector Martin
82+
Hoi-Ho Chan
83+
Ido Yariv
84+
Igor Anokhin
85+
Ihor Dutchak
86+
Ilya Konstantinov
87+
Jakub Klama
88+
James Hanko
89+
Jeffrey Nichols
90+
Jie Zhang
91+
Jim Chen
92+
Johann Richard
93+
John Keeping
94+
John Sheu
95+
Jonas Malaco
96+
Jonathon Jongsma
97+
Joost Muller
98+
Josh Gao
99+
Joshua Blake
100+
Joshua Hou
101+
Juan Cruz Viotti
102+
Julian Scheel
103+
Justin Bischoff
104+
Karsten Koenig
105+
Keith Ahluwalia
106+
Kenjiro Tsuji
107+
Kimura Masaru
108+
Konrad Rzepecki
109+
Kuangye Guo
110+
Lars Kanis
111+
Lars Wirzenius
112+
Lei Chen
113+
Léo Lam
114+
Liang Yunwang
115+
Luca Longinotti
116+
Luz Paz
117+
Mac Wang
118+
Marco Trevisan (Treviño)
119+
Marcus Meissner
120+
Mark Kuo
121+
Markus Heidelberg
122+
Martin Ettl
123+
Martin Koegler
124+
Martin Ling
125+
Martin Thierer
126+
Mathias Hjärtström
127+
Matthew Stapleton
128+
Matthias Bolte
129+
Michael Dickens
130+
Michel Zou
131+
Mike Frysinger
132+
Mikhail Gusarov
133+
Mikolaj Kucharski
134+
Morgan Leborgne
135+
Moritz Fischer
136+
Nancy Li
137+
Nia Alarie
138+
Nicholas Corgan
139+
Omri Iluz
140+
Orin Eman
141+
Ozkan Sezer
142+
Patrick Stewart
143+
Paul Cercueil
144+
Paul Fertser
145+
Paul Qureshi
146+
Pekka Nikander
147+
Philémon Favrod
148+
Pino Toscano
149+
Rob Walker
150+
Romain Vimont
151+
Roman Kalashnikov
152+
Ryan Hileman
153+
Ryan Schmidt
154+
Saleem Rashid
155+
Sameeh Jubran
156+
Sean McBride
157+
Sebastian Pipping
158+
Sebastian von Ohr
159+
Sergey Serb
160+
Shawn Hoffman
161+
Simon Haggett
162+
Simon Newton
163+
Slash Gordon
164+
Stefan Agner
165+
Stefan Tauner
166+
Steinar H. Gunderson
167+
Stephen Groat
168+
Theo Buehler
169+
Thomas Röfer
170+
Tim Hutt
171+
Tim Roberts
172+
Tobias Klauser
173+
Toby Peterson
174+
Tormod Volden
175+
Trygve Laugstøl
176+
Uri Lublin
177+
Uwe Bonnes
178+
Vasily Khoruzhick
179+
Vegard Storheil Eriksen
180+
Venkatesh Shukla
181+
Vianney le Clément de Saint-Marcq
182+
Victor Toso
183+
Vinicius Tinti
184+
Vitali Lovich
185+
Vladimir Beloborodov
186+
William Orr
187+
William Skellenger
188+
Xiaofan Chen
189+
Yegor Yefremov
190+
Zhiqiang Liu
191+
Zoltán Kovács
192+
Сергей Валерьевич
193+
Ларионов Даниил
194+
Роман Донченко
195+
jonner
196+
orbitcowboy
197+
osy
198+
parafin
199+
RipleyTom
200+
Seneral
201+
saur0n
202+
winterrace

third-party/libusb/CMakeLists.txt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
3+
set(LIBUSB_C libusb/core.c libusb/descriptor.c libusb/hotplug.c libusb/io.c libusb/strerror.c libusb/sync.c)
4+
if(WIN32)
5+
list(
6+
APPEND
7+
LIBUSB_C
8+
libusb/os/threads_windows.c
9+
libusb/os/threads_windows.c
10+
libusb/os/events_windows.c
11+
libusb/os/windows_winusb.c
12+
libusb/os/windows_common.c
13+
libusb/os/windows_usbdk.c)
14+
15+
elseif(OB_BUILD_ANDROID)
16+
list(APPEND LIBUSB_C libusb/os/linux_usbfs.c libusb/os/events_posix.c libusb/os/threads_posix.c
17+
libusb/os/linux_netlink.c)
18+
elseif(OB_BUILD_MACOS)
19+
list(APPEND LIBUSB_C libusb/os/darwin_usb.c libusb/os/events_posix.c libusb/os/threads_posix.c)
20+
else()
21+
list(APPEND LIBUSB_C libusb/os/linux_usbfs.c libusb/os/events_posix.c libusb/os/threads_posix.c
22+
libusb/os/linux_netlink.c)
23+
endif()
24+
25+
set(LIBUSB_H libusb/libusb.h)
26+
27+
add_library(libusb_static STATIC ${LIBUSB_C} ${LIBUSB_H})
28+
target_include_directories(libusb_static PUBLIC
29+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libusb>
30+
$<INSTALL_INTERFACE:include/libusb>)
31+
target_include_directories(libusb_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/libusb/os)
32+
33+
if(OB_BUILD_LINUX)
34+
target_include_directories(libusb_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/linux)
35+
elseif(OB_BUILD_MACOS)
36+
target_include_directories(libusb_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Xcode)
37+
target_link_libraries(libusb_static "-framework CoreFoundation -framework IOKit -framework Security")
38+
elseif(OB_BUILD_ANDROID)
39+
target_include_directories(libusb_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/android)
40+
else(OB_BUILD_WIN32)
41+
target_include_directories(libusb_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/msvc)
42+
target_include_directories(libusb_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/msvc/getopt)
43+
foreach(
44+
flag_var
45+
CMAKE_CXX_FLAGS
46+
CMAKE_CXX_FLAGS_DEBUG
47+
CMAKE_CXX_FLAGS_RELEASE
48+
CMAKE_CXX_FLAGS_MINSIZEREL
49+
CMAKE_CXX_FLAGS_RELWITHDEBINFO
50+
CMAKE_C_FLAGS
51+
CMAKE_C_FLAGS_DEBUG
52+
CMAKE_C_FLAGS_RELEASE
53+
CMAKE_C_FLAGS_MINSIZEREL
54+
CMAKE_C_FLAGS_RELWITHDEBINFO)
55+
if(${flag_var} MATCHES "/MD")
56+
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
57+
endif(${flag_var} MATCHES "/MD")
58+
endforeach(flag_var)
59+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
60+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
61+
endif()

0 commit comments

Comments
 (0)