mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Implement USB VID / PID retrieval using IOKit on OS X.
Instead of using libusb as wrapper query the USB IDs via IOKit. Since libusb is only used for that this means that it's no longer necessary on OS X. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28001 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c196da2cee
commit
40a6aef0c3
2 changed files with 84 additions and 4 deletions
|
|
@ -132,10 +132,10 @@ DEFINES += RBUTIL _LARGEFILE64_SOURCE
|
|||
win32 {
|
||||
LIBS += -lsetupapi -lnetapi32
|
||||
}
|
||||
unix:!static:!libusb1 {
|
||||
unix:!static:!libusb1:!macx {
|
||||
LIBS += -lusb
|
||||
}
|
||||
unix:!static:libusb1 {
|
||||
unix:!static:libusb1:!macx {
|
||||
DEFINES += LIBUSB1
|
||||
LIBS += -lusb-1.0
|
||||
}
|
||||
|
|
@ -144,7 +144,7 @@ unix {
|
|||
LIBS += -lz
|
||||
}
|
||||
|
||||
unix:static {
|
||||
unix:!macx:static {
|
||||
# force statically linking of libusb. Libraries that are appended
|
||||
# later will get linked dynamically again.
|
||||
LIBS += -Wl,-Bstatic -lusb -Wl,-Bdynamic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue