Update Mednafen targets

This commit is contained in:
twinaphex 2014-06-21 18:22:10 +02:00
parent 6d76849caf
commit f50e4ae160
3 changed files with 24 additions and 3 deletions

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 lynx wswan ngp vb; do for core in pce_fast pcfx lynx wswan ngp; 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}"
@ -82,6 +82,26 @@ build_libretro_mednafen_psx()
fi fi
} }
build_libretro_mednafen_vb()
{
cd $BASE_DIR
pwd
if [ -d "libretro-mednafen-vb" ]; then
cd libretro-mednafen-vb
cd jni
echo "=== Building Mednafen VB ==="
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 VB"
cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_vb_libretro${FORMAT}.${FORMAT_EXT}
cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_vb_libretro${FORMAT}.${FORMAT_EXT}
cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_vb_libretro${FORMAT}.${FORMAT_EXT}
else
echo "Mednafen VB not fetched, skipping ..."
fi
}
build_libretro_mednafen_pce_fast() build_libretro_mednafen_pce_fast()
{ {
cd $BASE_DIR cd $BASE_DIR
@ -661,6 +681,7 @@ else
build_libretro_bsnes build_libretro_bsnes
build_libretro_mednafen build_libretro_mednafen
build_libretro_mednafen_pce_fast build_libretro_mednafen_pce_fast
build_libretro_mednafen_vb
build_libretro_mednafen_psx build_libretro_mednafen_psx
#build_libretro_mednafen_gba #build_libretro_mednafen_gba
#build_libretro_mednafen_snes #build_libretro_mednafen_snes

View File

@ -8,7 +8,7 @@ die()
build_libretro_mednafen() build_libretro_mednafen()
{ {
for core in pcfx wswan ngp gba vb; do for core in pcfx wswan ngp gba; do
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-mednafen" ]; then if [ -d "libretro-mednafen" ]; then
echo "=== Building Mednafen ${core} ===" echo "=== Building Mednafen ${core} ==="

View File

@ -180,7 +180,7 @@ build_libretro_mednafen() {
echo '=== Building Mednafen ===' echo '=== Building Mednafen ==='
cd libretro-mednafen cd libretro-mednafen
for core in pcfx lynx wswan ngp gba vb; do for core in pcfx lynx wswan ngp gba; do
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" core="${core}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die "Failed to clean mednafen/${core}" "${MAKE}" core="${core}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die "Failed to clean mednafen/${core}"
fi fi