Change LUA=YES to LUA_MIXER=Y/N
This commit is contained in:
@@ -199,7 +199,7 @@ if(RTC_BACKUP_RAM)
|
|||||||
set(GTEST_SRC ${GTEST_SRC} ${RADIO_SRC_DIR}/storage/rtc_backup.cpp)
|
set(GTEST_SRC ${GTEST_SRC} ${RADIO_SRC_DIR}/storage/rtc_backup.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT LUA STREQUAL NO)
|
if(LUA)
|
||||||
add_definitions(-DLUA)
|
add_definitions(-DLUA)
|
||||||
if(LUA_COMPILER)
|
if(LUA_COMPILER)
|
||||||
add_definitions(-DLUA_COMPILER)
|
add_definitions(-DLUA_COMPILER)
|
||||||
@@ -212,7 +212,7 @@ if(NOT LUA STREQUAL NO)
|
|||||||
endif()
|
endif()
|
||||||
include_directories(${LUA_DIR})
|
include_directories(${LUA_DIR})
|
||||||
set(RADIO_DEPENDENCIES ${RADIO_DEPENDENCIES} ${LUA_EXPORT})
|
set(RADIO_DEPENDENCIES ${RADIO_DEPENDENCIES} ${LUA_EXPORT})
|
||||||
if(LUA STREQUAL YES)
|
if(LUA_MIXER)
|
||||||
add_definitions(-DLUA_MODEL_SCRIPTS)
|
add_definitions(-DLUA_MODEL_SCRIPTS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -273,6 +273,10 @@ if(NOT LUA STREQUAL NO)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (LUA_MIXER AND NOT LUA)
|
||||||
|
message(FATAL_ERROR "LUA_MIXER requires LUA!!")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(HELI)
|
if(HELI)
|
||||||
add_definitions(-DHELI)
|
add_definitions(-DHELI)
|
||||||
endif()
|
endif()
|
||||||
@@ -589,7 +593,7 @@ if(NOT MSVC)
|
|||||||
# Use newlib nano, which saves a few kilobytes.
|
# Use newlib nano, which saves a few kilobytes.
|
||||||
if(NOT NANO STREQUAL NO)
|
if(NOT NANO STREQUAL NO)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --specs=nano.specs")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --specs=nano.specs")
|
||||||
if(NOT LUA STREQUAL NO)
|
if(LUA)
|
||||||
# Lua needs %g and %f
|
# Lua needs %g and %f
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -u _printf_float -u _scanf_float")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -u _printf_float -u _scanf_float")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ if(FLIGHT_MODES)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LUA STREQUAL YES)
|
if(LUA_MIXER)
|
||||||
set(GUI_SRC
|
set(GUI_SRC
|
||||||
${GUI_SRC}
|
${GUI_SRC}
|
||||||
model_custom_scripts.cpp
|
model_custom_scripts.cpp
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ if(FLIGHT_MODES)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LUA STREQUAL YES)
|
if(LUA_MIXER)
|
||||||
set(GUI_SRC
|
set(GUI_SRC
|
||||||
${GUI_SRC}
|
${GUI_SRC}
|
||||||
model_custom_scripts.cpp
|
model_custom_scripts.cpp
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ if(LUA)
|
|||||||
set(SRC ${SRC} lua/widgets.cpp)
|
set(SRC ${SRC} lua/widgets.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LUA STREQUAL YES)
|
if(LUA_MIXER)
|
||||||
add_gui_src(model_mixer_scripts.cpp)
|
add_gui_src(model_mixer_scripts.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user