From 8ba4ce12286207bcb11a77335d654af40437abb9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 22 Jun 2014 03:14:12 +0200 Subject: [PATCH] Add Beetle PCFX --- libretro-build-android-mk.sh | 22 +++++++++++++++++++++- libretro-build-common-xdk.sh | 16 +++++++++++++++- libretro-build-common.sh | 14 ++++++++++++++ libretro-build-ios.sh | 1 + libretro-build-ngc.sh | 1 + libretro-build-ps3.sh | 1 + libretro-build-psp1.sh | 1 + libretro-build-qnx.sh | 1 + libretro-build-wii.sh | 1 + libretro-build-win.sh | 1 + libretro-build-xdk1.sh | 1 + libretro-build-xdk360.sh | 1 + libretro-build.sh | 1 + libretro-fetch.sh | 1 + 14 files changed, 61 insertions(+), 2 deletions(-) diff --git a/libretro-build-android-mk.sh b/libretro-build-android-mk.sh index 63fb4490..8f6e13c9 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 lynx wswan; do + for core in lynx; do echo "=== Building Mednafen ${core} ===" if [ -z "${NOCLEAN}" ]; then ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean mednafen_${core}" @@ -121,6 +121,25 @@ build_libretro_beetle_psx() fi } +build_libretro_beetle_pcfx() +{ cd $BASE_DIR + pwd + if [ -d "libretro-beetle-pcfx" ]; then + cd libretro-beetle-pcfx + cd jni + echo "=== Building Beetle PCFX ===" + if [ -z "${NOCLEAN}" ]; then + ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean Beetle PCFX" + fi + ndk-build APP_ABI="armeabi-v7a mips x86" || die "Failed to build Beetle PCFX" + cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT} + cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT} + cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT} + else + echo "Beetle PCFX not fetched, skipping ..." + fi +} + build_libretro_beetle_vb() { cd $BASE_DIR @@ -721,6 +740,7 @@ else build_libretro_mednafen build_libretro_mednafen_ngp build_libretro_mednafen_pce_fast + build_libretro_mednafen_pcfx build_libretro_mednafen_vb build_libretro_mednafen_wswan build_libretro_mednafen_psx diff --git a/libretro-build-common-xdk.sh b/libretro-build-common-xdk.sh index 380bc1d0..c723bb77 100644 --- a/libretro-build-common-xdk.sh +++ b/libretro-build-common-xdk.sh @@ -8,7 +8,7 @@ die() build_libretro_mednafen() { - for core in pcfx gba; do + for core in gba; do cd $BASE_DIR if [ -d "libretro-mednafen" ]; then echo "=== Building Mednafen ${core} ===" @@ -64,6 +64,20 @@ build_libretro_beetle_pce_fast() fi } +build_libretro_beetle_pcfx() +{ + cd $BASE_DIR + if [ -d "libretro-beetle-pcfx" ]; then + echo "=== Building Beetle PCFX ===" + cd libretro-beetle-pcfx + cd msvc + cmd.exe /k $MSVC_NAME.bat + cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_pcfx_libretro$FORMAT.$FORMAT_EXT + else + echo "Beetle PCFX Fast not fetched, skipping ..." + fi +} + build_libretro_beetle_vb() { cd $BASE_DIR diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 631acb60..d8ea2d34 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -248,6 +248,20 @@ build_libretro_beetle_vb() { fi } +build_libretro_beetle_pcfx() { + cd "${BASE_DIR}" + if [ -d 'libretro-beetle-pcfx' ]; then + echo '=== Building Beetle PCFX ===' + cd libretro-beetle-pcfx + + "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die "Failed to clean Beetle/pcfx" + "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die "Failed to build Beetle/pcfx" + cp "mednafen_pcfx_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'Beetle PCFX not fetched, skipping ...' + fi +} + build_libretro_beetle_psx() { cd "${BASE_DIR}" if [ -d 'libretro-beetle-psx' ]; then diff --git a/libretro-build-ios.sh b/libretro-build-ios.sh index 57b7e66b..a41135b0 100755 --- a/libretro-build-ios.sh +++ b/libretro-build-ios.sh @@ -32,6 +32,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_beetle_psx diff --git a/libretro-build-ngc.sh b/libretro-build-ngc.sh index 7a227f57..a6185bba 100755 --- a/libretro-build-ngc.sh +++ b/libretro-build-ngc.sh @@ -20,6 +20,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_s9x_next diff --git a/libretro-build-ps3.sh b/libretro-build-ps3.sh index a457b522..a57f37f0 100755 --- a/libretro-build-ps3.sh +++ b/libretro-build-ps3.sh @@ -19,6 +19,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_beetle_psx diff --git a/libretro-build-psp1.sh b/libretro-build-psp1.sh index 8c4e5b9a..39061f56 100755 --- a/libretro-build-psp1.sh +++ b/libretro-build-psp1.sh @@ -18,6 +18,7 @@ if [ $1 ]; then else build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_mednafen diff --git a/libretro-build-qnx.sh b/libretro-build-qnx.sh index 1c6fbd57..2f3f7468 100755 --- a/libretro-build-qnx.sh +++ b/libretro-build-qnx.sh @@ -20,6 +20,7 @@ else #build_libretro_bsnes build_libretro_mednafen build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_beetle_psx diff --git a/libretro-build-wii.sh b/libretro-build-wii.sh index 2d97da7a..acded769 100755 --- a/libretro-build-wii.sh +++ b/libretro-build-wii.sh @@ -20,6 +20,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_psx build_libretro_beetle_vb build_libretro_beetle_wswan diff --git a/libretro-build-win.sh b/libretro-build-win.sh index f3cfb525..d192591c 100644 --- a/libretro-build-win.sh +++ b/libretro-build-win.sh @@ -23,6 +23,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_s9x diff --git a/libretro-build-xdk1.sh b/libretro-build-xdk1.sh index 1dc5d9d4..e0c94c41 100644 --- a/libretro-build-xdk1.sh +++ b/libretro-build-xdk1.sh @@ -82,6 +82,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_s9x_next diff --git a/libretro-build-xdk360.sh b/libretro-build-xdk360.sh index bd2d6b13..73f76790 100644 --- a/libretro-build-xdk360.sh +++ b/libretro-build-xdk360.sh @@ -38,6 +38,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_s9x_next diff --git a/libretro-build.sh b/libretro-build.sh index 1c453df4..02f099cc 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -99,6 +99,7 @@ else build_libretro_mednafen build_libretro_beetle_ngp build_libretro_beetle_pce_fast + build_libretro_beetle_pcfx build_libretro_beetle_vb build_libretro_beetle_wswan build_libretro_beetle_psx diff --git a/libretro-fetch.sh b/libretro-fetch.sh index de5a2778..f1a7e00f 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -98,6 +98,7 @@ fetch_project "$REPO_BASE/libretro/mednafen-libretro.git" "libretro-mednafen" "l fetch_project "$REPO_BASE/libretro/beetle-ngp-libretro.git" "libretro-beetle-ngp" "libretro/Mednafen NGP" fetch_project "$REPO_BASE/libretro/beetle-pce-fast-libretro.git" "libretro-beetle-pce-fast" "libretro/Mednafen PCE Fast" fetch_project "$REPO_BASE/libretro/beetle-psx-libretro.git" "libretro-beetle-psx" "libretro/Mednafen PSX" +fetch_project "$REPO_BASE/libretro/beetle-pcfx-libretro.git" "libretro-beetle-pcfx" "libretro/Mednafen PCFX" fetch_project "$REPO_BASE/libretro/beetle-vb-libretro.git" "libretro-beetle-vb" "libretro/Mednafen VB" fetch_project "$REPO_BASE/libretro/beetle-wswan-libretro.git" "libretro-beetle-wswan" "libretro/Mednafen WSwan" fetch_project "$REPO_BASE/libretro/scummvm.git" "libretro-scummvm" "libretro/scummvm"