all repos — mgba @ 42b3647511a1febdfb61c5b74744df973e4cc50a

mGBA Game Boy Advance Emulator

Switch: Install targets
Vicki Pfau vi@endrift.com
Sat, 15 Sep 2018 16:22:25 -0700
commit

42b3647511a1febdfb61c5b74744df973e4cc50a

parent

b86d3f9fc3fe60ab362ed824b5b16e61608b10ff

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -1040,6 +1040,8 @@ elseif(WII)

set(CPACK_COMPONENTS_ALL ${BINARY_NAME} ${BINARY_NAME}-wii) elseif(PSP2) set(CPACK_COMPONENTS_ALL ${BINARY_NAME} ${BINARY_NAME}-psp2) + elseif(SWITCH) + set(CPACK_COMPONENTS_ALL ${BINARY_NAME} ${BINARY_NAME}-switch) endif() endif()

@@ -1064,6 +1066,8 @@ elseif(PSP2)

cpack_add_component(${BINARY_NAME}-psp2 GROUP base) elseif(WII) cpack_add_component(${BINARY_NAME}-wii GROUP base) +elseif(SWITCH) + cpack_add_component(${BINARY_NAME}-switch GROUP base) endif() if(BUILD_QT)
M src/platform/switch/CMakeLists.txtsrc/platform/switch/CMakeLists.txt

@@ -49,3 +49,5 @@

add_custom_target(${BINARY_NAME}.nro ALL ${ELF2NRO} ${BINARY_NAME}.elf ${BINARY_NAME}.nro --romfs=romfs.bin --nacp=control.nacp --icon="${CMAKE_CURRENT_SOURCE_DIR}/icon.jpg" DEPENDS ${BINARY_NAME}.elf control.nacp ${CMAKE_CURRENT_SOURCE_DIR}/icon.jpg romfs.bin) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.nro DESTINATION . COMPONENT ${BINARY_NAME}-switch)