mirror of
https://github.com/radiomanV/TL866.git
synced 2026-03-03 23:14:17 +01:00
Fix macOS compilation
Note that this does introduce pkg-config as a compile-time dependency.
This commit is contained in:
@@ -40,11 +40,13 @@ HEADERS += usb_macos.h \
|
||||
notifier_macos.h
|
||||
SOURCES += usb_macos.cpp \
|
||||
notifier_macos.cpp
|
||||
LIBS += -L/opt/local/lib \
|
||||
-lusb-1.0 \
|
||||
LIBS += `pkg-config --libs-only-l libusb-1.0` \
|
||||
-framework IOKit \
|
||||
-framework Carbon
|
||||
QMAKE_CXXFLAGS += "-std=c++0x"
|
||||
QMAKE_CXX = clang
|
||||
QMAKE_CXXFLAGS += "-std=c++0x" \
|
||||
`pkg-config --cflags libusb-1.0`
|
||||
QMAKE_LFLAGS += `pkg-config --libs-only-L libusb-1.0`
|
||||
INCPATH += /opt/local/include
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <glob.h>
|
||||
#include <QList>
|
||||
#include <libusb-1.0/libusb.h>
|
||||
#include <libusb.h>
|
||||
|
||||
class USB
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user