all repos — mgba @ 11f3a6e43d73e8b0ad8be94c6d43fd9345b1bef2

mGBA Game Boy Advance Emulator

Wii: Use CMake install instead of automatically zipping
Jeffrey Pfau jeffrey@endrift.com
Thu, 27 Aug 2015 19:22:00 -0700
commit

11f3a6e43d73e8b0ad8be94c6d43fd9345b1bef2

parent

afb29aee10f1c27e0090808162655997de639d76

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

jump to
M src/platform/wii/CMakeLists.txtsrc/platform/wii/CMakeLists.txt

@@ -2,14 +2,4 @@ add_executable(${BINARY_NAME}.elf ${GUI_SRC} ${CMAKE_BINARY_DIR}/font.c)

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) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/meta.xml.in ${CMAKE_CURRENT_BINARY_DIR}/meta.xml) -add_custom_target(${BINARY_NAME}-wii.zip ALL - COMMAND ${CMAKE_COMMAND} -E remove ${BINARY_NAME}-wii.zip - COMMAND ${CMAKE_COMMAND} -E make_directory ${BINARY_NAME}-wii - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/meta.xml ${BINARY_NAME}-wii/ - COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_NAME}.dol ${BINARY_NAME}-wii/boot.dol - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/icon.png ${BINARY_NAME}-wii/ - COMMAND zip -r ${BINARY_NAME}-wii.zip ${BINARY_NAME}-wii - DEPENDS ${BINARY_NAME}.elf - SOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/meta.xml.in - ${CMAKE_CURRENT_SOURCE_DIR}/icon.png) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/icon.png ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.dol ${CMAKE_CURRENT_BINARY_DIR}/meta.xml DESTINATION . COMPONENT ${BINARY_NAME}-wii)