all repos — mgba @ 4f8020dd1f26ad86e1c87df65940c146a564748f

mGBA Game Boy Advance Emulator

Wii: Add elf2dol post-build
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Jun 2015 02:13:04 -0700
commit

4f8020dd1f26ad86e1c87df65940c146a564748f

parent

e94744d8c761139a6246ae48e9723825c5bd28f7

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -207,7 +207,9 @@ list(APPEND VFS_SRC ${CMAKE_SOURCE_DIR}/src/util/vfs/vfs-file.c)

add_definitions(-DCOLOR_16_BIT -DCOLOR_5_6_5) file(GLOB WII_SRC ${CMAKE_SOURCE_DIR}/src/platform/wii/*.c) add_executable(${BINARY_NAME}.elf ${WII_SRC}) - target_link_libraries(${BINARY_NAME}.elf ${BINARY_NAME} fat ogc) + list(APPEND OS_LIB fat ogc) + target_link_libraries(${BINARY_NAME}.elf ${BINARY_NAME} ${OS_LIB}) + add_custom_command(TARGET ${BINARY_NAME}.elf POST_BUILD COMMAND ${ELF2DOL} ${BINARY_NAME}.elf ${BINARY_NAME}.dol) endif() if(BUILD_PANDORA)