mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Removed Lightpack based on hidapi from build (not working)
Former-commit-id: b3882807daf5993073a7af811db50fe3d0a45c28
This commit is contained in:
parent
f892a8c09a
commit
983ce30331
@ -4,9 +4,14 @@ SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperion)
|
||||
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperion)
|
||||
|
||||
#add libusb and pthreads (required for the Lighpack usb device)
|
||||
#find_package(UDev REQUIRED)
|
||||
find_package(libusb-1.0 REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
#find_package(UDev REQUIRED)
|
||||
|
||||
include_directories(
|
||||
../../include/hidapi
|
||||
# ${UDEV_INCLUDE_DIR}
|
||||
${LIBUSB_1_INCLUDE_DIRS}) # for Lightpack device
|
||||
|
||||
# Group the headers that go through the MOC compiler
|
||||
@ -37,7 +42,6 @@ SET(Hyperion_HEADERS
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceLpd8806.h
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceLightpack.h
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceMultiLightpack.h
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceLightpack-hidapi.h
|
||||
)
|
||||
|
||||
SET(Hyperion_SOURCES
|
||||
@ -62,7 +66,6 @@ SET(Hyperion_SOURCES
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceAdalight.cpp
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceLightpack.cpp
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceMultiLightpack.cpp
|
||||
${CURRENT_SOURCE_DIR}/device/LedDeviceLightpack-hidapi.cpp
|
||||
)
|
||||
|
||||
set(Hyperion_RESOURCES
|
||||
@ -84,6 +87,8 @@ add_library(hyperion
|
||||
target_link_libraries(hyperion
|
||||
hyperion-utils
|
||||
serialport
|
||||
hidapi-libusb
|
||||
${LIBUSB_1_LIBRARIES} #apt-get install libusb-1.0-0-dev
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
# ${UDEV_LIBRARIES} # apt-get install libudev-dev
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include "device/LedDeviceWs2801.h"
|
||||
#include "device/LedDeviceAdalight.h"
|
||||
#include "device/LedDeviceLightpack.h"
|
||||
#include "device/LedDeviceLightpack-hidapi.h"
|
||||
#include "device/LedDeviceMultiLightpack.h"
|
||||
|
||||
#include "LinearColorSmoothing.h"
|
||||
@ -95,15 +94,6 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
|
||||
|
||||
device = deviceLightpack;
|
||||
}
|
||||
else if (type == "lightpack-hidapi")
|
||||
{
|
||||
const std::string output = deviceConfig.get("output", "").asString();
|
||||
|
||||
LedDeviceLightpackHidapi* deviceLightpack = new LedDeviceLightpackHidapi();
|
||||
deviceLightpack->open(output);
|
||||
|
||||
device = deviceLightpack;
|
||||
}
|
||||
else if (type == "multi-lightpack")
|
||||
{
|
||||
LedDeviceMultiLightpack* deviceLightpack = new LedDeviceMultiLightpack();
|
||||
|
Loading…
Reference in New Issue
Block a user