(Android) Add Mednafen PSX build rule

This commit is contained in:
twinaphex 2014-06-18 20:30:58 +02:00
parent e0ef9ad9e0
commit 05b9c5ea07

View File

@ -46,7 +46,7 @@ build_libretro_mednafen()
echo "=== Building Mednafen cores ===" echo "=== Building Mednafen cores ==="
cd libretro-mednafen cd libretro-mednafen
cd jni 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} ===" echo "=== Building Mednafen ${core} ==="
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean mednafen_${core}" ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean mednafen_${core}"
@ -62,6 +62,26 @@ build_libretro_mednafen()
fi 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() build_libretro_s9x()
{ {
cd $BASE_DIR cd $BASE_DIR