2010-03-15 23:09:47 +01:00
|
|
|
TEMPLATE = lib
|
|
|
|
TARGET = RawHID
|
|
|
|
include(../../openpilotgcsplugin.pri)
|
|
|
|
include(rawhid_dependencies.pri)
|
2010-03-21 14:44:00 +01:00
|
|
|
HEADERS += rawhid_global.h \
|
|
|
|
rawhidplugin.h \
|
|
|
|
rawhid.h \
|
|
|
|
pjrc_rawhid.h \
|
|
|
|
rawhid_const.h
|
|
|
|
SOURCES += rawhidplugin.cpp \
|
|
|
|
rawhid.cpp
|
2010-03-15 23:09:47 +01:00
|
|
|
FORMS +=
|
|
|
|
RESOURCES +=
|
|
|
|
DEFINES += RAWHID_LIBRARY
|
|
|
|
OTHER_FILES += RawHID.pluginspec
|
2010-03-21 14:44:00 +01:00
|
|
|
|
|
|
|
# Platform Specific USB HID Stuff
|
|
|
|
win32 {
|
|
|
|
SOURCES += pjrc_rawhid_win.cpp
|
|
|
|
LIBS += -lhid \
|
|
|
|
-lsetupapi
|
|
|
|
}
|
|
|
|
macx {
|
|
|
|
SOURCES += pjrc_rawhid_mac.cpp
|
|
|
|
SDK = /Developer/SDKs/MacOSX10.5.sdk
|
|
|
|
ARCH = -mmacosx-version-min=10.5 \
|
|
|
|
-arch \
|
|
|
|
ppc \
|
|
|
|
-arch \
|
|
|
|
i386
|
|
|
|
LIBS += $(ARCH) \
|
|
|
|
-Wl,-syslibroot,$(SDK) \
|
|
|
|
-framework \
|
|
|
|
IOKit \
|
|
|
|
-framework \
|
|
|
|
CoreFoundation
|
|
|
|
}
|
2010-08-05 19:19:06 +02:00
|
|
|
linux-g++ {
|
|
|
|
SOURCES += pjrc_rawhid_unix.cpp
|
|
|
|
LIBS += -lusb
|
|
|
|
}
|
|
|
|
linux-g++-64 {
|
2010-03-21 14:44:00 +01:00
|
|
|
SOURCES += pjrc_rawhid_unix.cpp
|
|
|
|
LIBS += -lusb
|
|
|
|
}
|