3DS: Only bundle resources with tests that need them
This commit is contained in:
parent
fec006a4f9
commit
94c8c170eb
@ -148,7 +148,7 @@ macro(add_sdl_test_executable TARGET)
|
||||
set_property(TARGET ${TARGET} PROPERTY SDL_NONINTERACTIVE_TIMEOUT "${AST_NONINTERACTIVE_TIMEOUT}")
|
||||
endif()
|
||||
if(AST_NEEDS_RESOURCES)
|
||||
if(PSP OR PS2)
|
||||
if(PSP OR PS2 OR N3DS)
|
||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} ARGS -E make_directory $<TARGET_FILE_DIR:${TARGET}>/sdl-${TARGET}
|
||||
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${RESOURCE_FILES} $<TARGET_FILE_DIR:${TARGET}>/sdl-${TARGET})
|
||||
@ -528,12 +528,11 @@ if(PSP)
|
||||
endif()
|
||||
|
||||
if(N3DS)
|
||||
set(ROMFS_DIR "${CMAKE_CURRENT_BINARY_DIR}/romfs")
|
||||
file(COPY ${RESOURCE_FILES} DESTINATION "${ROMFS_DIR}")
|
||||
|
||||
foreach(APP ${SDL_TEST_EXECUTABLES})
|
||||
get_target_property(TARGET_BINARY_DIR ${APP} BINARY_DIR)
|
||||
set(ROMFS_DIR "${TARGET_BINARY_DIR}/sdl-${APP}")
|
||||
set(SMDH_FILE "${TARGET_BINARY_DIR}/${APP}.smdh")
|
||||
file(MAKE_DIRECTORY ${ROMFS_DIR})
|
||||
ctr_generate_smdh("${SMDH_FILE}"
|
||||
NAME "SDL-${APP}"
|
||||
DESCRIPTION "SDL3 Test suite"
|
||||
|
Loading…
Reference in New Issue
Block a user