Get hidapi stuff building on Linux
This commit is contained in:
parent
ec8cdf1e26
commit
fa4d9ebbf6
6 changed files with 15 additions and 6 deletions
|
|
@ -10,7 +10,7 @@
|
|||
#include "RGBController.h"
|
||||
|
||||
#include <string>
|
||||
#include "hidapi.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include "RGBController.h"
|
||||
#include "RGBController_MSI3Zone.h"
|
||||
#include <vector>
|
||||
#include "hidapi.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#define MSI_3_ZONE_KEYBOARD_VID 0x1770
|
||||
#define MSI_3_ZONE_KEYBOARD_PID 0xFF00
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "RGBController.h"
|
||||
|
||||
#include <string>
|
||||
#include "hidapi.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include "RGBController.h"
|
||||
#include "RGBController_PoseidonZRGB.h"
|
||||
#include <vector>
|
||||
#include "hidapi.h"
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#define TT_POSEIDON_Z_RGB_VID 0x264A
|
||||
#define TT_POSEIDON_Z_RGB_PID 0x3006
|
||||
|
|
|
|||
13
OpenRGB.pro
13
OpenRGB.pro
|
|
@ -90,7 +90,6 @@ HEADERS += \
|
|||
qt/OpenRGBDialog.h \
|
||||
i2c_smbus/i2c_smbus.h \
|
||||
i2c_tools/i2c_tools.h \
|
||||
hidapi/hidapi.h \
|
||||
net_port/net_port.h \
|
||||
qt/OpenRGBDialog2.h \
|
||||
qt/OpenRGBSystemInfoPage.h \
|
||||
|
|
@ -191,7 +190,17 @@ unix:HEADERS += \
|
|||
|
||||
unix:LIBS += \
|
||||
-lusb-1.0 \
|
||||
-lhidapi
|
||||
|
||||
packagesExist(hidapi-libusb){
|
||||
unix:LIBS += -lhidapi-libusb
|
||||
} else {
|
||||
packagesExist(hidapi) {
|
||||
unix:LIBS += -lhidapi
|
||||
} else {
|
||||
unix:LIBS += -lhidapi-libusb
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
unix:SOURCES += \
|
||||
i2c_smbus/i2c_smbus_linux.cpp \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue