Get hidapi stuff building on Linux

This commit is contained in:
Adam Honse 2020-01-09 19:13:19 -06:00
parent ec8cdf1e26
commit fa4d9ebbf6
6 changed files with 15 additions and 6 deletions

View file

@ -10,7 +10,7 @@
#include "RGBController.h"
#include <string>
#include "hidapi.h"
#include <hidapi/hidapi.h>
#pragma once

View file

@ -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

View file

@ -11,7 +11,7 @@
#include "RGBController.h"
#include <string>
#include "hidapi.h"
#include <hidapi/hidapi.h>
#pragma once

View file

@ -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

View file

@ -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 \