Skip to content

Commit

Permalink
vita.cmake: avoid rebuilding unnecessarily vpk and eboot (#120)
Browse files Browse the repository at this point in the history
Fix #116.
  • Loading branch information
blastrock authored and devnoname120 committed Sep 4, 2018
1 parent 53b940c commit dadf354
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake_toolchain/vita.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ macro(vita_create_self target source)
COMMENT "Converting to Sony ELF ${source}.velf" VERBATIM
)
separate_arguments(VITA_MAKE_FSELF_FLAGS)
add_custom_target(${target} ALL
add_custom_command(OUTPUT ${target}
COMMAND ${VITA_MAKE_FSELF} ${VITA_MAKE_FSELF_FLAGS} ${source}.velf ${target}
DEPENDS ${source}.velf
COMMENT "Creating SELF ${target}"
)
add_dependencies(${target} ${source})
add_custom_target(${target}_ ALL DEPENDS ${target})
endmacro(vita_create_self)
##################################################

Expand Down Expand Up @@ -178,11 +178,11 @@ macro(vita_create_vpk target titleid eboot)
COMMENT "Generating param.sfo for ${target}"
)
separate_arguments(VITA_PACK_VPK_FLAGS)
add_custom_target(${target} ALL
add_custom_command(OUTPUT ${target}
COMMAND ${VITA_PACK_VPK} ${VITA_PACK_VPK_FLAGS} -s ${target}_param.sfo -b ${eboot} ${target}
DEPENDS ${target}_param.sfo
DEPENDS ${target}_param.sfo ${eboot}
COMMENT "Building vpk ${target}"
)
add_dependencies(${target} ${eboot})
add_custom_target(${target}_ ALL DEPENDS ${target})
endmacro(vita_create_vpk)
##################################################

0 comments on commit dadf354

Please sign in to comment.