Add WITH_MINIMAID option to allow building on ARM
This commit is contained in:
@@ -62,3 +62,6 @@ if(LINUX)
|
||||
option(WITH_LIBXTST "Build with libXtst support" ON)
|
||||
option(WITH_X11 "Build with X11 support" ON)
|
||||
endif()
|
||||
|
||||
option(WITH_MINIMAID "Build with Minimaid support." ON)
|
||||
|
||||
|
||||
@@ -190,15 +190,19 @@ list(APPEND SMDATA_ARCH_LIGHTS_HPP "arch/Lights/LightsDriver.h"
|
||||
if(NOT APPLE)
|
||||
if(WIN32)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_Win32Minimaid.cpp"
|
||||
"arch/Lights/LightsDriver_Win32Serial.cpp"
|
||||
"arch/Lights/LightsDriver_Win32Parallel.cpp"
|
||||
"arch/Lights/LightsDriver_PacDrive.cpp")
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_Win32Minimaid.h"
|
||||
"arch/Lights/LightsDriver_Win32Parallel.h"
|
||||
"arch/Lights/LightsDriver_Win32Serial.h"
|
||||
"arch/Lights/LightsDriver_PacDrive.h")
|
||||
if(WITH_MINIMAID)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_Win32Minimaid.cpp")
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_Win32Minimaid.h")
|
||||
endif()
|
||||
else() # Unix/Linux TODO: Linux HAVE_PARALLEL_PORT
|
||||
if(LINUX)
|
||||
list(APPEND SMDATA_LINK_LIB "udev")
|
||||
@@ -209,7 +213,6 @@ if(NOT APPLE)
|
||||
"arch/Lights/LightsDriver_Linux_PIUIOBTN_Leds.cpp"
|
||||
"arch/Lights/LightsDriver_Linux_ITGIO.cpp"
|
||||
"arch/Lights/LightsDriver_Linux_stac.cpp"
|
||||
"arch/Lights/LightsDriver_LinuxMinimaid.cpp"
|
||||
"arch/Lights/LightsDriver_LinuxPacDrive.cpp"
|
||||
"arch/Lights/LightsDriver_LinuxWeedTech.cpp")
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
@@ -219,9 +222,15 @@ if(NOT APPLE)
|
||||
"arch/Lights/LightsDriver_Linux_PIUIOBTN_Leds.h"
|
||||
"arch/Lights/LightsDriver_Linux_ITGIO.h"
|
||||
"arch/Lights/LightsDriver_Linux_stac.h"
|
||||
"arch/Lights/LightsDriver_LinuxMinimaid.h"
|
||||
"arch/Lights/LightsDriver_LinuxPacDrive.h"
|
||||
"arch/Lights/LightsDriver_LinuxWeedTech.h")
|
||||
if(WITH_MINIMAID)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_LinuxMinimaid.cpp")
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_HPP
|
||||
"arch/Lights/LightsDriver_LinuxMinimaid.h")
|
||||
endif()
|
||||
|
||||
if(WITH_PARALLEL_PORT)
|
||||
list(APPEND SMDATA_ARCH_LIGHTS_SRC
|
||||
"arch/Lights/LightsDriver_LinuxParallel.cpp")
|
||||
|
||||
+4
-1
@@ -323,7 +323,10 @@ endif()
|
||||
set_property(TARGET "${SM_EXE_NAME}" PROPERTY FOLDER "Internal Libraries")
|
||||
|
||||
list(APPEND SMDATA_LINK_LIB "lua-5.1" "miniz")
|
||||
include(../extern/CMakeProject-mmmagic.cmake)
|
||||
|
||||
if(WITH_MINIMAID)
|
||||
include(../extern/CMakeProject-mmmagic.cmake)
|
||||
endif()
|
||||
|
||||
list(APPEND SMDATA_LINK_LIB "mad"
|
||||
"pcre"
|
||||
|
||||
Reference in New Issue
Block a user