Create way to copy and rename core properly and

output to dist/android/{ABI}/ dir
This commit is contained in:
twinaphex 2015-08-04 04:07:26 +02:00
parent 961c83e3ea
commit d94280b812
2 changed files with 6 additions and 2 deletions

View File

@ -64,8 +64,11 @@ build_summary_log() {
copy_core_to_dist() { copy_core_to_dist() {
[ -z "$1" ] && return 1 [ -z "$1" ] && return 1
dest="${2:-$1}" dest="${2:-$1}"
echo_cmd "cp \"$CORE_PREFIX$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR/$dest$CORE_SUFFIX\"" if [ "$FORMAT_ABI_ANDROID" = "yes" ]; then
echo_cmd "cp \"$CORE_PREFIX$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR/${dest}_libretro_android.so\""
else
echo_cmd "cp \"$CORE_PREFIX$1$CORE_SUFFIX\" \"$RARCH_DIST_DIR/$dest$CORE_SUFFIX\""
fi
ret=$? ret=$?
build_summary_log $ret "$dest" build_summary_log $ret "$dest"
return $ret return $ret

View File

@ -41,6 +41,7 @@ case "$platform" in
FORMAT=.armeabi-v7a FORMAT=.armeabi-v7a
FORMAT_COMPILER_TARGET=android-armeabi_v7a FORMAT_COMPILER_TARGET=android-armeabi_v7a
FORMAT_COMPILER_TARGET_ALT=android-armeabi_v7a FORMAT_COMPILER_TARGET_ALT=android-armeabi_v7a
FORMAT_ABI_ANDROID=yes
UNAME_PLATFORM="$(uname)" UNAME_PLATFORM="$(uname)"
HOST_PLATFORM="linux" HOST_PLATFORM="linux"