Only copy resources to PSP eboot directory if it exists

This commit is contained in:
Wouter Wijsman 2022-01-05 11:33:51 +01:00 committed by Sam Lantinga
parent 9d0b4d85fc
commit cd6cb959c0
1 changed files with 38 additions and 30 deletions

View File

@ -134,37 +134,8 @@ endif()
file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt) file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
file(COPY ${RESOURCE_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) file(COPY ${RESOURCE_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
set(NEEDS_RESOURCES
testscale
testrendercopyex
controllermap
testyuv
testgamecontroller
testshape
testshader
testspriteminimal
testautomation
testcustomcursor
testrendertarget
testsprite2
loopwave
loopwavequeue
testresample
testaudiohotplug
testmultiaudio
testime
testiconv
testoverlay2
teststreaming
testviewport
)
if(NOT PSP)
set(NEEDS_RESOURCES ${NEEDS_RESOURCES} testnative)
endif()
if(PSP) if(PSP)
# Build EBOOT files if building for PSP set(NEEDS_RESOURCES
set(BUILD_EBOOT
testscale testscale
testrendercopyex testrendercopyex
controllermap controllermap
@ -181,6 +152,43 @@ if(PSP)
testresample testresample
testaudiohotplug testaudiohotplug
testmultiaudio testmultiaudio
testiconv
testoverlay2
teststreaming
testviewport
)
else()
set(NEEDS_RESOURCES
testscale
testrendercopyex
controllermap
testyuv
testgamecontroller
testshape
testshader
testspriteminimal
testautomation
testcustomcursor
testrendertarget
testsprite2
loopwave
loopwavequeue
testresample
testaudiohotplug
testmultiaudio
testime
testnative
testiconv
testoverlay2
teststreaming
testviewport
)
endif()
if(PSP)
# Build EBOOT files if building for PSP
set(BUILD_EBOOT
${NEEDS_RESOURCES}
testoffscreen testoffscreen
testbounds testbounds
testgl2 testgl2