From 45af44291583f3e01dbd29e2de5921fe5c6e5f4e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 3 May 2013 17:22:09 +0200 Subject: [PATCH] Set up other build scripts so cores can be conditionally compiled as well --- libretro-build-android.sh | 28 ++++++++++++++++------------ libretro-build-ios.sh | 36 ++++++++++++++++++++---------------- libretro-build-ngc.sh | 26 +++++++++++++++----------- libretro-build-ps3.sh | 26 +++++++++++++++----------- libretro-build-qnx.sh | 36 ++++++++++++++++++++---------------- libretro-build-wii.sh | 26 +++++++++++++++----------- libretro-build-win32.sh | 35 +++++++++++++++++++---------------- libretro-build-xdk1.sh | 27 +++++++++++++++------------ libretro-build-xdk360.sh | 25 ++++++++++++++----------- 9 files changed, 149 insertions(+), 116 deletions(-) diff --git a/libretro-build-android.sh b/libretro-build-android.sh index dc4b4b8b..f3808598 100755 --- a/libretro-build-android.sh +++ b/libretro-build-android.sh @@ -280,15 +280,19 @@ create_dist_dir() create_dist_dir -build_libretro_pcsx_rearmed -build_libretro_mednafen -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_nx -build_libretro_prboom -build_libretro_nestopia -build_libretro_tyrquake +if [ $1 ]; then + $1 +else + build_libretro_pcsx_rearmed + build_libretro_mednafen + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_nx + build_libretro_prboom + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-ios.sh b/libretro-build-ios.sh index ed5c48b8..cd195186 100755 --- a/libretro-build-ios.sh +++ b/libretro-build-ios.sh @@ -15,19 +15,23 @@ export IOSSDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.plat . ./libretro-build-common-console.sh -build_libretro_pcsx_rearmed -build_libretro_mednafen -build_libretro_mednafen_psx -build_libretro_mednafen_gba -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba_full -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_nx -build_libretro_prboom -build_libretro_stella -build_libretro_desmume -build_libretro_nestopia -build_libretro_tyrquake +if [ $1 ]; then + $1 +else + build_libretro_pcsx_rearmed + build_libretro_mednafen + build_libretro_mednafen_psx + build_libretro_mednafen_gba + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba_full + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_nx + build_libretro_prboom + build_libretro_stella + build_libretro_desmume + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-ngc.sh b/libretro-build-ngc.sh index bf2e6c62..b3adef23 100755 --- a/libretro-build-ngc.sh +++ b/libretro-build-ngc.sh @@ -13,14 +13,18 @@ JOBS=7 . ./libretro-build-common-gx.sh . ./libretro-build-common-console.sh -build_libretro_mednafen -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_nx -build_libretro_prboom -build_libretro_nestopia -build_libretro_tyrquake +if [ $1 ]; then + $1 +else + build_libretro_mednafen + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_nx + build_libretro_prboom + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-ps3.sh b/libretro-build-ps3.sh index 7947dc80..947be9a2 100755 --- a/libretro-build-ps3.sh +++ b/libretro-build-ps3.sh @@ -12,14 +12,18 @@ JOBS=7 . ./libretro-build-common-console.sh -build_libretro_mednafen -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba_full -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_nx -build_libretro_prboom -build_libretro_nestopia -build_libretro_tyrquake +if [ $1 ]; then + $1 +else + build_libretro_mednafen + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba_full + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_nx + build_libretro_prboom + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-qnx.sh b/libretro-build-qnx.sh index e7238e5a..5bb62166 100755 --- a/libretro-build-qnx.sh +++ b/libretro-build-qnx.sh @@ -12,19 +12,23 @@ JOBS=7 . ./libretro-build-common-console.sh -build_libretro_pcsx_rearmed -build_libretro_mednafen -build_libretro_mednafen_psx -build_libretro_mednafen_gba -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba_full -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_nx -build_libretro_prboom -#build_libretro_stella -#build_libretro_desmume -build_libretro_nestopia -build_libretro_tyrquake +if [ $1 ]; then + $1 +else + build_libretro_pcsx_rearmed + build_libretro_mednafen + build_libretro_mednafen_psx + build_libretro_mednafen_gba + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba_full + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_nx + build_libretro_prboom + #build_libretro_stella + #build_libretro_desmume + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-wii.sh b/libretro-build-wii.sh index 902d5354..5b902b48 100755 --- a/libretro-build-wii.sh +++ b/libretro-build-wii.sh @@ -13,14 +13,18 @@ JOBS=7 . ./libretro-build-common-gx.sh . ./libretro-build-common-console.sh -build_libretro_mednafen -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_nx -build_libretro_prboom -build_libretro_nestopia -build_libretro_tyrquake +if [ $1 ]; then + $1 +else + build_libretro_mednafen + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_nx + build_libretro_prboom + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-win32.sh b/libretro-build-win32.sh index 22765d56..cb2fb087 100755 --- a/libretro-build-win32.sh +++ b/libretro-build-win32.sh @@ -300,19 +300,22 @@ build_libretro_nestopia() mkdir -p "$RARCH_DIST_DIR" -build_libretro_bsnes -build_libretro_mednafen -build_libretro_s9x -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba -build_libretro_vba -build_libretro_bnes -build_libretro_fceu -build_libretro_gambatte -build_libretro_meteor -build_libretro_stella -build_libretro_desmume -build_libretro_quicknes -build_libretro_nestopia - +if [ $1 ]; then + $1 +else + build_libretro_bsnes + build_libretro_mednafen + build_libretro_s9x + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba + build_libretro_vba + build_libretro_bnes + build_libretro_fceu + build_libretro_gambatte + build_libretro_meteor + build_libretro_stella + build_libretro_desmume + build_libretro_quicknes + build_libretro_nestopia +fi diff --git a/libretro-build-xdk1.sh b/libretro-build-xdk1.sh index 11d3f839..9d5bb2ba 100644 --- a/libretro-build-xdk1.sh +++ b/libretro-build-xdk1.sh @@ -47,15 +47,18 @@ build_libretro_fba() source $BASE_DIR/libretro-build-common-xdk.sh -build_libretro_mednafen -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -#build_libretro_nx -build_libretro_prboom -build_libretro_nestopia -build_libretro_tyrquake - +if [ $1 ]; then + $1 +else + build_libretro_mednafen + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + #build_libretro_nx + build_libretro_prboom + build_libretro_nestopia + build_libretro_tyrquake +fi diff --git a/libretro-build-xdk360.sh b/libretro-build-xdk360.sh index d24bc7ff..260eb6bf 100644 --- a/libretro-build-xdk360.sh +++ b/libretro-build-xdk360.sh @@ -30,14 +30,17 @@ build_libretro_fba() source $BASE_DIR/libretro-build-common-xdk.sh -build_libretro_mednafen -build_libretro_s9x_next -build_libretro_genplus -build_libretro_fba -build_libretro_vba -build_libretro_fceu -build_libretro_gambatte -build_libretro_prboom -build_libretro_nestopia -build_libretro_tyrquake - +if [ $1 ]; then + $1 +else + build_libretro_mednafen + build_libretro_s9x_next + build_libretro_genplus + build_libretro_fba + build_libretro_vba + build_libretro_fceu + build_libretro_gambatte + build_libretro_prboom + build_libretro_nestopia + build_libretro_tyrquake +fi