Make theos build products hack a little less hacky

This commit is contained in:
T. Joseph Carter 2015-03-10 07:46:19 -07:00
parent f29d2d9cb6
commit de0382d2c7

View File

@ -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"