mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-1798 cleaned up ophid.pro
This commit is contained in:
parent
a1a225f592
commit
f8b3e6d3b1
@ -1,24 +1,29 @@
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
TARGET = opHID
|
TARGET = opHID
|
||||||
|
|
||||||
|
DEFINES += OPHID_LIBRARY
|
||||||
|
|
||||||
include(../../openpilotgcsplugin.pri)
|
include(../../openpilotgcsplugin.pri)
|
||||||
include(ophid_dependencies.pri)
|
include(ophid_dependencies.pri)
|
||||||
|
|
||||||
HEADERS += inc/ophid_global.h \
|
HEADERS += \
|
||||||
inc/ophid_plugin.h \
|
inc/ophid_global.h \
|
||||||
inc/ophid.h \
|
inc/ophid_plugin.h \
|
||||||
inc/ophid_hidapi.h \
|
inc/ophid.h \
|
||||||
inc/ophid_const.h \
|
inc/ophid_hidapi.h \
|
||||||
inc/ophid_usbmon.h \
|
inc/ophid_const.h \
|
||||||
inc/ophid_usbsignal.h \
|
inc/ophid_usbmon.h \
|
||||||
hidapi/hidapi.h
|
inc/ophid_usbsignal.h \
|
||||||
SOURCES += src/ophid_plugin.cpp \
|
hidapi/hidapi.h
|
||||||
src/ophid.cpp \
|
|
||||||
src/ophid_usbsignal.cpp \
|
SOURCES += \
|
||||||
src/ophid_hidapi.cpp
|
src/ophid_plugin.cpp \
|
||||||
|
src/ophid.cpp \
|
||||||
|
src/ophid_usbsignal.cpp \
|
||||||
|
src/ophid_hidapi.cpp
|
||||||
|
|
||||||
FORMS +=
|
FORMS +=
|
||||||
RESOURCES +=
|
RESOURCES +=
|
||||||
DEFINES += OPHID_LIBRARY
|
|
||||||
OTHER_FILES += opHID.pluginspec
|
OTHER_FILES += opHID.pluginspec
|
||||||
|
|
||||||
INCLUDEPATH += ./inc
|
INCLUDEPATH += ./inc
|
||||||
@ -26,25 +31,30 @@ INCLUDEPATH += ./inc
|
|||||||
# Platform Specific
|
# Platform Specific
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
SOURCES += src/ophid_usbmon_win.cpp \
|
SOURCES += \
|
||||||
hidapi/windows/hid.c
|
src/ophid_usbmon_win.cpp \
|
||||||
|
hidapi/windows/hid.c
|
||||||
|
|
||||||
LIBS += -lhid -lsetupapi
|
LIBS += -lhid -lsetupapi
|
||||||
}
|
}
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
SOURCES += src/ophid_usbmon_mac.cpp \
|
SOURCES += \
|
||||||
hidapi/mac/hid.c
|
src/ophid_usbmon_mac.cpp \
|
||||||
LIBS += -framework CoreFoundation \
|
hidapi/mac/hid.c
|
||||||
-framework IOKit
|
|
||||||
|
LIBS += -framework CoreFoundation -framework IOKit
|
||||||
}
|
}
|
||||||
|
|
||||||
linux {
|
linux {
|
||||||
SOURCES += src/ophid_usbmon_linux.cpp
|
SOURCES += \
|
||||||
|
src/ophid_usbmon_linux.cpp
|
||||||
|
|
||||||
LIBS += -ludev -lrt -lpthread
|
LIBS += -ludev -lrt -lpthread
|
||||||
|
|
||||||
# hidapi library
|
# hidapi library
|
||||||
## rawhid
|
## rawhid
|
||||||
# SOURCES += hidapi/linux/hid.c
|
#SOURCES += hidapi/linux/hid.c
|
||||||
## libusb
|
## libusb
|
||||||
SOURCES += hidapi/libusb/hid.c
|
SOURCES += hidapi/libusb/hid.c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user