Fries
e5dfbf0e0c
the wii does the game loop now, as i passed some c functions to javascript. those functions are inside objects to make the js api easier to read and use.
10 lines
388 B
CMake
10 lines
388 B
CMake
add_custom_command(
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/asset_generator.py ${CMAKE_CURRENT_SOURCE_DIR}/game.js ${CMAKE_CURRENT_SOURCE_DIR}/game.c
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/game.c
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/game.js
|
|
COMMENT "Creating game.c from game.js"
|
|
)
|
|
|
|
add_executable(WiiDuktape main.c game.c)
|
|
target_link_libraries(WiiDuktape duktape)
|
|
ogc_create_dol(WiiDuktape)
|