diff --git a/libretro-build-android-mk.sh b/libretro-build-android-mk.sh index 991df084..f6bfaba0 100755 --- a/libretro-build-android-mk.sh +++ b/libretro-build-android-mk.sh @@ -62,6 +62,26 @@ build_libretro_mednafen() fi } +build_libretro_beetle_gba() +{ + cd $BASE_DIR + pwd + if [ -d "libretro-beetle-gba" ]; then + cd libretro-beetle-gba + cd jni + echo "=== Building Beetle GBA ===" + if [ -z "${NOCLEAN}" ]; then + ndk-build clean APP_ABI="armeabi-v7a mips x86" || die "Failed to clean Beetle GBA" + fi + ndk-build APP_ABI="armeabi-v7a mips x86" || die "Failed to build Beetle GBA" + cp ../libs/armeabi-v7a/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/armeabi-v7a/mednafen_gba_libretro${FORMAT}.${FORMAT_EXT} + cp ../libs/mips/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/mips/mednafen_gba_libretro${FORMAT}.${FORMAT_EXT} + cp ../libs/x86/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/x86/mednafen_gba_libretro${FORMAT}.${FORMAT_EXT} + else + echo "Beetle GBA not fetched, skipping ..." + fi +} + build_libretro_beetle_ngp() { cd $BASE_DIR @@ -757,16 +777,15 @@ if [ $1 ]; then else #build_libretro_bsnes_cplusplus98 build_libretro_bsnes - build_libretro_mednafen - build_libretro_mednafen_ngp - build_libretro_mednafen_pce_fast - build_libretro_mednafen_supergrafx - build_libretro_mednafen_pcfx - build_libretro_mednafen_vb - build_libretro_mednafen_wswan - build_libretro_mednafen_psx - #build_libretro_mednafen_gba - #build_libretro_mednafen_snes + build_libretro_beetle_gba + build_libretro_beetle_ngp + build_libretro_beetle_pce_fast + build_libretro_beetle_supergrafx + build_libretro_beetle_pcfx + build_libretro_beetle_vb + build_libretro_beetle_wswan + build_libretro_beetle_psx + #build_libretro_beetle_snes build_libretro_s9x build_libretro_s9x_next build_libretro_genplus diff --git a/libretro-build-common-xdk.sh b/libretro-build-common-xdk.sh index 6bbb9fc2..9cf4cd86 100644 --- a/libretro-build-common-xdk.sh +++ b/libretro-build-common-xdk.sh @@ -36,6 +36,20 @@ build_libretro_beetle_wswan() fi } +build_libretro_beetle_gba() +{ + cd $BASE_DIR + if [ -d "libretro-beetle-gba" ]; then + echo "=== Building Beetle GBA ===" + cd libretro-beetle-gba + cd msvc + cmd.exe /k $MSVC_NAME.bat + cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_gba_libretro$FORMAT.$FORMAT_EXT + else + echo "Beetle GBA not fetched, skipping ..." + fi +} + build_libretro_beetle_ngp() { cd $BASE_DIR diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 8a00c289..7aca15f0 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -206,6 +206,20 @@ build_libretro_beetle_wswan() { fi } +build_libretro_beetle_gba() { + cd "${BASE_DIR}" + if [ -d 'libretro-beetle-gba' ]; then + echo '=== Building Beetle GBA ===' + cd libretro-beetle-gba + + "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die "Failed to clean beetle/gba" + "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die "Failed to build beetle/gba" + cp "mednafen_gba_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'Beetle GBA not fetched, skipping ...' + fi +} + build_libretro_beetle_ngp() { cd "${BASE_DIR}" if [ -d 'libretro-beetle-ngp' ]; then diff --git a/libretro-build-ios.sh b/libretro-build-ios.sh index 6f6729ab..391b81a8 100755 --- a/libretro-build-ios.sh +++ b/libretro-build-ios.sh @@ -29,7 +29,7 @@ if [ $1 ]; then else build_libretro_bsnes_cplusplus98 build_libretro_bsnes - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-ngc.sh b/libretro-build-ngc.sh index 7f048cd9..2e16b0c5 100755 --- a/libretro-build-ngc.sh +++ b/libretro-build-ngc.sh @@ -17,7 +17,7 @@ MAKE=make if [ $1 ]; then $1 else - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-ps3.sh b/libretro-build-ps3.sh index ec359682..3dc707d8 100755 --- a/libretro-build-ps3.sh +++ b/libretro-build-ps3.sh @@ -16,7 +16,7 @@ MAKE=make if [ $1 ]; then $1 else - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-psp1.sh b/libretro-build-psp1.sh index 28352d61..1aac1219 100755 --- a/libretro-build-psp1.sh +++ b/libretro-build-psp1.sh @@ -16,6 +16,7 @@ MAKE=make if [ $1 ]; then $1 else + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-qnx.sh b/libretro-build-qnx.sh index fa326d5d..b291c877 100755 --- a/libretro-build-qnx.sh +++ b/libretro-build-qnx.sh @@ -18,7 +18,7 @@ if [ $1 ]; then else build_libretro_bsnes_cplusplus98 #build_libretro_bsnes - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx build_libretro_beetle_pcfx diff --git a/libretro-build-wii.sh b/libretro-build-wii.sh index 78ac2d78..b842b4ed 100755 --- a/libretro-build-wii.sh +++ b/libretro-build-wii.sh @@ -18,6 +18,7 @@ if [ $1 ]; then $1 else build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-win.sh b/libretro-build-win.sh index 5945b0ac..d652032a 100644 --- a/libretro-build-win.sh +++ b/libretro-build-win.sh @@ -21,6 +21,7 @@ if [ $1 ]; then $1 else build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-xdk1.sh b/libretro-build-xdk1.sh index 807d3b00..9c804097 100644 --- a/libretro-build-xdk1.sh +++ b/libretro-build-xdk1.sh @@ -79,7 +79,7 @@ source $BASE_DIR/libretro-build-common-xdk.sh if [ $1 ]; then $1 else - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build-xdk360.sh b/libretro-build-xdk360.sh index ae3fcd33..fdd325f5 100644 --- a/libretro-build-xdk360.sh +++ b/libretro-build-xdk360.sh @@ -35,7 +35,7 @@ source $BASE_DIR/libretro-build-common-xdk.sh if [ $1 ]; then $1 else - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-build.sh b/libretro-build.sh index 1c1329ee..705367c9 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -96,7 +96,7 @@ if [ $1 ]; then else build_libretro_bsnes_cplusplus98 build_libretro_bsnes - build_libretro_mednafen + build_libretro_beetle_gba build_libretro_beetle_ngp build_libretro_beetle_pce_fast build_libretro_beetle_supergrafx diff --git a/libretro-fetch.sh b/libretro-fetch.sh index b8315381..407883e0 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -95,6 +95,7 @@ fetch_project "$REPO_BASE/libretro/nestopia.git" "libretro-nestopia" "libretro/N fetch_project "$REPO_BASE/libretro/tyrquake.git" "libretro-tyrquake" "libretro/tyrquake" fetch_project "$REPO_BASE/libretro/pcsx_rearmed.git" "libretro-pcsx-rearmed" "libretro/pcsx_rearmed" fetch_project "$REPO_BASE/libretro/mednafen-libretro.git" "libretro-mednafen" "libretro/Mednafen" +fetch_project "$REPO_BASE/libretro/beetle-gba-libretro.git" "libretro-beetle-gba" "libretro/Beetle GBA" fetch_project "$REPO_BASE/libretro/beetle-ngp-libretro.git" "libretro-beetle-ngp" "libretro/Beetle NGP" fetch_project "$REPO_BASE/libretro/beetle-pce-fast-libretro.git" "libretro-beetle-pce-fast" "libretro/Beetle PCE Fast" fetch_project "$REPO_BASE/libretro/beetle-supergrafx-libretro.git" "libretro-beetle-supergrafx" "libretro/Beetle SuperGrafx"