Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 9e76cec

Browse files
committed
merge remote-tracking branch 'origin/macos_compile' into macos_compile
2 parents 63e992a + c8761df commit 9e76cec

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

dependencies/build/hidapi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project(hidapi)
33
# Add the 'generic' hidapi include directory
44
include_directories(../../include/hidapi)
55

6+
#TODO[TvdZ]: Rename hidapi-??? to hidapi
67
if(APPLE)
78

89
find_package(IOKit REQUIRED)

libsrc/leddevice/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,51 @@ include_directories(
1212
${LIBUSB_1_INCLUDE_DIRS}) # for Lightpack device
1313

1414
# Group the headers that go through the MOC compiler
15+
SET(Leddevice_QT_HEADERS
16+
${CURRENT_SOURCE_DIR}/LedDeviceAdalight.h
17+
)
1518

1619
SET(Leddevice_HEADERS
1720
${CURRENT_HEADER_DIR}/LedDevice.h
1821
${CURRENT_HEADER_DIR}/LedDeviceFactory.h
1922

2023
${CURRENT_SOURCE_DIR}/LedRs232Device.h
24+
2125
${CURRENT_SOURCE_DIR}/LedDeviceTest.h
2226
${CURRENT_SOURCE_DIR}/LedDeviceSedu.h
2327
${CURRENT_SOURCE_DIR}/LedDeviceLightpack.h
2428
${CURRENT_SOURCE_DIR}/LedDevicePaintpack.h
2529
${CURRENT_SOURCE_DIR}/LedDeviceMultiLightpack.h
30+
${CURRENT_SOURCE_DIR}/LedDeviceWs2811.h
2631
)
2732

2833
SET(Leddevice_SOURCES
2934
${CURRENT_SOURCE_DIR}/LedDeviceFactory.cpp
3035

36+
${CURRENT_SOURCE_DIR}/LedDeviceAdalight.cpp
3137
${CURRENT_SOURCE_DIR}/LedRs232Device.cpp
3238
${CURRENT_SOURCE_DIR}/LedDeviceSedu.cpp
3339
${CURRENT_SOURCE_DIR}/LedDeviceTest.cpp
3440
${CURRENT_SOURCE_DIR}/LedDeviceLightpack.cpp
3541
${CURRENT_SOURCE_DIR}/LedDevicePaintpack.cpp
3642
${CURRENT_SOURCE_DIR}/LedDeviceMultiLightpack.cpp
43+
${CURRENT_SOURCE_DIR}/LedDeviceWs2811.cpp
3744
)
3845

3946
if(ENABLE_SPIDEV)
40-
SET(Leddevice_QT_HEADERS
41-
${Leddevice_QT_HEADERS}
42-
${CURRENT_SOURCE_DIR}/LedDeviceAdalight.h
43-
)
4447
SET(Leddevice_HEADERS
4548
${Leddevice_HEADERS}
4649
${CURRENT_SOURCE_DIR}/LedSpiDevice.h
4750
${CURRENT_SOURCE_DIR}/LedDeviceLpd6803.h
4851
${CURRENT_SOURCE_DIR}/LedDeviceLpd8806.h
4952
${CURRENT_SOURCE_DIR}/LedDeviceWs2801.h
50-
${CURRENT_SOURCE_DIR}/LedDeviceWs2811.h
5153
)
5254
SET(Leddevice_SOURCES
5355
${Leddevice_SOURCES}
5456
${CURRENT_SOURCE_DIR}/LedSpiDevice.cpp
55-
${CURRENT_SOURCE_DIR}/LedDeviceAdalight.cpp
5657
${CURRENT_SOURCE_DIR}/LedDeviceLpd6803.cpp
5758
${CURRENT_SOURCE_DIR}/LedDeviceLpd8806.cpp
5859
${CURRENT_SOURCE_DIR}/LedDeviceWs2801.cpp
59-
${CURRENT_SOURCE_DIR}/LedDeviceWs2811.cpp
6060
)
6161
endif(ENABLE_SPIDEV)
6262

libsrc/leddevice/LedDeviceFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
7474

7575
device = deviceLpd8806;
7676
}
77+
#endif
7778
else if (type == "adalight")
7879
{
7980
const std::string output = deviceConfig["output"].asString();
@@ -84,7 +85,6 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
8485

8586
device = deviceAdalight;
8687
}
87-
#endif
8888
else if (type == "sedu")
8989
{
9090
const std::string output = deviceConfig["output"].asString();

0 commit comments

Comments
 (0)