kopia lustrzana https://gitlab.com/eliggett/wfview
Fix problem if USB_CONTROLLER isn't enabled
rodzic
f86a721a05
commit
8f5016a2f4
|
@ -15,11 +15,13 @@
|
||||||
#include <QGamepad>
|
#include <QGamepad>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USB_CONTROLLER)
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
#include "hidapi/hidapi.h"
|
#include "hidapi/hidapi.h"
|
||||||
#else
|
#else
|
||||||
#include "hidapi.h"
|
#include "hidapi.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
//Headers needed for sleeping.
|
//Headers needed for sleeping.
|
||||||
|
|
|
@ -14,7 +14,7 @@ QT += core gui serialport network multimedia xml
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
||||||
|
|
||||||
contains(DEFINES,USB_CONTROLLER){
|
contains(DEFINES,USB_CONTROLLERS){
|
||||||
lessThan(QT_MAJOR_VERSION, 6): QT += gamepad
|
lessThan(QT_MAJOR_VERSION, 6): QT += gamepad
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ linux:LIBS += -L./ -l$$QCPLIB -lopus
|
||||||
!linux:LIBS += -l$$QCPLIB -lopus
|
!linux:LIBS += -l$$QCPLIB -lopus
|
||||||
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
|
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
|
||||||
|
|
||||||
contains(DEFINES,USB_CONTROLLER){
|
contains(DEFINES,USB_CONTROLLERS){
|
||||||
linux:LIBS += -L./ -l$$QCPLIB -lhidapi-libusb
|
linux:LIBS += -L./ -l$$QCPLIB -lhidapi-libusb
|
||||||
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lhidapi
|
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lhidapi
|
||||||
win32:INCLUDEPATH += ../hidapi/hidapi
|
win32:INCLUDEPATH += ../hidapi/hidapi
|
||||||
|
|
Ładowanie…
Reference in New Issue