diff --git a/apps/twnlua/CMakeLists.txt b/apps/twnlua/CMakeLists.txt index 8d3e213..fc05527 100644 --- a/apps/twnlua/CMakeLists.txt +++ b/apps/twnlua/CMakeLists.txt @@ -13,7 +13,7 @@ set(FLAGS ) add_custom_command( - OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/game.c COMMAND ${PYTHON3} ${CMAKE_CURRENT_SOURCE_DIR}/bindgen.py $ENV{TWNROOT}/share/twn_api.json ${FLAGS} > ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bindgen.py $ENV{TWNROOT}/share/twn_api.json CODEGEN diff --git a/apps/twnlua/bindgen.py b/apps/twnlua/bindgen.py index 1d5de21..4c5b16b 100755 --- a/apps/twnlua/bindgen.py +++ b/apps/twnlua/bindgen.py @@ -64,7 +64,7 @@ def from_table(typedesc, variable, indent = 0): print('#include "twn_game_api.h"\n') -print('/* assumed to be included from game.c, where minilua.h is already present */"\n') +print('/* assumed to be included from game.c, where minilua.h is already present */\n') bindings, used_converters = [], {} for procedure, procedure_desc in api["procedures"].items():