From de0382d2c7e2a54467def3341b53ff78b4b30345 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Tue, 10 Mar 2015 07:46:19 -0700 Subject: [PATCH] Make theos build products hack a little less hacky --- libretro-build-common.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index ddd6f2c2..3a62a147 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -41,7 +41,11 @@ echo "$FORMAT_COMPILER_TARGET_ALT" RESET_FORMAT_COMPILER_TARGET=$FORMAT_COMPILER_TARGET RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT +CORE_PREFIX="" CORE_SUFFIX="_libretro${FORMAT}.$FORMAT_EXT" +if [ "$platform" = "theos_ios" ]; then + CORE_PREFIX="objs/obj/" +fi build_summary_log() { @@ -156,11 +160,7 @@ build_libretro_fba_cps1() { copy_core_to_dist() { - if [ "$FORMAT_COMPILER_TARGET" = "theos_ios" ]; then - echo_cmd "cp \"objs/obj/$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR\"" - else - echo_cmd "cp \"$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR\"" - fi + echo_cmd "cp \"$CORE_PREFIX$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR\"" ret=$? build_summary_log $ret "$1"