Browse Source

Fix 3DS build failures when running builds anywhere besides the build directory

pull/2533/head
staphen 5 years ago committed by Anders Jenbo
parent
commit
764dfdb1b6
  1. 8
      CMake/ctr/Tools3DS.cmake
  2. 2
      CMakeLists.txt
  3. 2
      Packaging/ctr/template.rsf

8
CMake/ctr/Tools3DS.cmake

@ -362,13 +362,13 @@ function(add_cia_target target RSF IMAGE SOUND)
COMMAND ${MAKEROM} -f cia
-target t
-exefslogo
-o ${CMAKE_CURRENT_BINARY_DIR}/${target_we}.cia
-o ${target_we}.cia
-elf $<TARGET_FILE:${target}>-stripped
-rsf ${RSF}
-banner ${CMAKE_CURRENT_BINARY_DIR}/${target_we}.bnr
-icon ${CMAKE_CURRENT_BINARY_DIR}/${target_we}.smdh
-banner ${target_we}.bnr
-icon ${target_we}.smdh
DEPENDS ${target} ${RSF} ${CMAKE_CURRENT_BINARY_DIR}/${target_we}.bnr ${CMAKE_CURRENT_BINARY_DIR}/${target_we}.smdh
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)

2
CMakeLists.txt

@ -936,7 +936,7 @@ if(NINTENDO_3DS)
include(Tools3DS)
add_3dsx_target(${BIN_TARGET})
add_cia_target(${BIN_TARGET} ${APP_RSF} ${APP_BANNER} ${APP_AUDIO} ${APP_ROMFS})
add_cia_target(${BIN_TARGET} ${APP_RSF} ${APP_BANNER} ${APP_AUDIO})
endif()
if(CPACK)

2
Packaging/ctr/template.rsf

@ -5,7 +5,7 @@ BasicInfo:
RomFs:
# Specifies the root path of the read only file system to include in the ROM.
RootPath : build/romfs
RootPath : romfs
TitleInfo:
Category : Application

Loading…
Cancel
Save