2024-06-19 07:39:01 +00:00
|
|
|
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
|
2024-06-21 01:41:49 +00:00
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/game.js ${CMAKE_CURRENT_SOURCE_DIR}/asset_generator.py
|
2024-06-19 07:39:01 +00:00
|
|
|
COMMENT "Creating game.c from game.js"
|
|
|
|
)
|
|
|
|
|
2024-06-21 01:41:49 +00:00
|
|
|
add_custom_command(
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/data_asset_generator.py ${CMAKE_SOURCE_DIR}/data ${CMAKE_CURRENT_SOURCE_DIR}/data_generated.c
|
|
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/data_generated.c
|
|
|
|
DEPENDS ${CMAKE_SOURCE_DIR}/data ${CMAKE_CURRENT_SOURCE_DIR}/data_asset_generator.py
|
|
|
|
COMMENT "Creating data_generated.c from the data directory"
|
|
|
|
)
|
|
|
|
|
2024-06-25 00:37:38 +00:00
|
|
|
add_executable(WiiDuktape main.c grrlib_duk.c wii_duk.c rgba.c game.c data_generated.c)
|
2024-06-19 04:51:50 +00:00
|
|
|
target_link_libraries(WiiDuktape duktape)
|
2024-06-20 04:08:16 +00:00
|
|
|
target_link_libraries(WiiDuktape GRRLIB)
|
2024-06-19 04:51:50 +00:00
|
|
|
ogc_create_dol(WiiDuktape)
|