From 05b9c5ea079d32733448ea8feab6c77f0c741bef Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 18 Jun 2014 20:30:58 +0200 Subject: [PATCH] (Android) Add Mednafen PSX build rule --- libretro-build-android-mk.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/libretro-build-android-mk.sh b/libretro-build-android-mk.sh index f4784ed7..96cf8baa 100755 --- a/libretro-build-android-mk.sh +++ b/libretro-build-android-mk.sh @@ -46,7 +46,7 @@ build_libretro_mednafen() echo "=== Building Mednafen cores ===" cd libretro-mednafen cd jni - for core in pce_fast pcfx psx lynx wswan ngp vb; do + for core in pce_fast pcfx lynx wswan ngp vb; do echo "=== Building Mednafen ${core} ===" if [ -z "${NOCLEAN}" ]; then ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean mednafen_${core}" @@ -62,6 +62,26 @@ build_libretro_mednafen() fi } +build_libretro_mednafen_psx() +{ + cd $BASE_DIR + pwd + if [ -d "libretro-mednafen" ]; then + cd libretro-mednafen-psx + cd jni + echo "=== Building Mednafen PSX ===" + if [ -z "${NOCLEAN}" ]; then + ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean Mednafen PSX" + fi + ndk-build APP_ABI="armeabi-v7a mips x86" || die "Failed to build Mednafen PSX" + cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_psx_libretro${FORMAT}.${FORMAT_EXT} + cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_psx_libretro${FORMAT}.${FORMAT_EXT} + cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_psx_libretro${FORMAT}.${FORMAT_EXT} + else + echo "Mednafen PSX not fetched, skipping ..." + fi +} + build_libretro_s9x() { cd $BASE_DIR