chores(lua): Generate keys definitions (#3923)

This commit is contained in:
Raphael Coeffic
2023-12-20 21:28:40 +10:00
committed by GitHub
parent 79f58cf9ef
commit 6b1256db66
3 changed files with 144 additions and 139 deletions
+3
View File
@@ -29,15 +29,18 @@ set(SRC ${SRC}
AddHWGenTarget(${HW_DESC_JSON} lua_inputs lua_inputs.inc)
AddHWGenTarget(${HW_DESC_JSON} lua_mixsrc lua_mixsrc.inc)
AddHWGenTarget(${HW_DESC_JSON} lua_keys lua_keys.inc)
set(SRC ${SRC}
${CMAKE_CURRENT_BINARY_DIR}/lua_inputs.inc
${CMAKE_CURRENT_BINARY_DIR}/lua_mixsrc.inc
${CMAKE_CURRENT_BINARY_DIR}/lua_keys.inc
)
# helper target for testing purposes
add_custom_target(lua_inputs DEPENDS ${HW_DESC_JSON} lua_inputs.inc)
add_custom_target(lua_mixsrc DEPENDS ${HW_DESC_JSON} lua_mixsrc.inc)
add_custom_target(lua_keys DEPENDS ${HW_DESC_JSON} lua_keys.inc)
if(GUI_DIR STREQUAL colorlcd)
set(SRC ${SRC} lua/api_colorlcd.cpp lua/widgets.cpp)