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:
Dominik Riebeling 2010-09-05 18:19:23 +00:00
parent c196da2cee
commit 40a6aef0c3
2 changed files with 84 additions and 4 deletions

View file

@ -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