2015-02-17 03:19:30 +00:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2013-02-10 15:01:43 +00:00
|
|
|
|
2013-05-01 02:19:07 +00:00
|
|
|
BASE_DIR=$(pwd)
|
2013-04-30 02:42:41 +00:00
|
|
|
RARCH_DIR=$BASE_DIR/dist
|
|
|
|
RARCH_DIST_DIR=$RARCH_DIR/xdk1
|
2013-02-10 15:01:43 +00:00
|
|
|
FORMAT=_xdk
|
2013-05-18 00:11:06 +00:00
|
|
|
FORMAT_EXT=lib
|
2013-02-10 15:01:43 +00:00
|
|
|
MSVC_NAME=msvc-2003-xbox1
|
2014-03-15 15:05:24 +00:00
|
|
|
RELEASE_LTCG=Release_LTCG
|
2014-03-15 16:57:35 +00:00
|
|
|
RELEASE=Release
|
2013-02-10 15:01:43 +00:00
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
echo $1
|
|
|
|
#exit 1
|
2013-02-10 15:01:43 +00:00
|
|
|
}
|
|
|
|
|
2014-03-09 18:20:02 +00:00
|
|
|
build_libretro_fba_cps1()
|
2013-02-10 15:01:43 +00:00
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-fba" ]; then
|
|
|
|
echo "=== Building Final Burn Alpha Cores (CPS1) ==="
|
|
|
|
cd libretro-fba/
|
|
|
|
cd svn-current/trunk
|
|
|
|
cd fbacores/cps1/projectfiles/visualstudio-2003-libretro-xbox1
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps1_libretro$FORMAT.${FORMAT_EXT}
|
|
|
|
fi
|
2014-03-09 18:20:02 +00:00
|
|
|
}
|
2013-02-17 13:19:17 +00:00
|
|
|
|
2014-03-09 18:20:02 +00:00
|
|
|
build_libretro_fba_cps2()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-fba" ]; then
|
|
|
|
echo "=== Building Final Burn Alpha Cores (CPS2) ==="
|
|
|
|
cd libretro-fba/
|
|
|
|
cd svn-old/trunk
|
|
|
|
cd fbacores/cps2/projectfiles/visualstudio-2003-libretro-xbox1
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps2_libretro$FORMAT.${FORMAT_EXT}
|
|
|
|
fi
|
2014-03-09 18:20:02 +00:00
|
|
|
}
|
2013-02-17 13:19:17 +00:00
|
|
|
|
2014-03-09 18:20:02 +00:00
|
|
|
|
2014-03-09 20:11:00 +00:00
|
|
|
build_libretro_fba_neogeo()
|
2014-03-09 18:20:02 +00:00
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-fba" ]; then
|
|
|
|
echo "=== Building Final Burn Alpha Cores (NeoGeo) ==="
|
|
|
|
cd libretro-fba/
|
|
|
|
cd svn-current/trunk
|
|
|
|
cd fbacores/neogeo/projectfiles/visualstudio-2003-libretro-xbox1
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_neo_libretro$FORMAT.${FORMAT_EXT}
|
|
|
|
fi
|
2014-03-09 18:20:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_fba()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-fba" ]; then
|
|
|
|
echo "=== Building Final Burn Alpha ==="
|
|
|
|
cd libretro-fba/
|
|
|
|
cd svn-current/trunk
|
|
|
|
cd projectfiles/visualstudio-2003-libretro-xbox1
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR
|
2014-03-09 18:20:02 +00:00
|
|
|
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_fba_cps1
|
|
|
|
build_libretro_fba_cps2
|
|
|
|
build_libretro_fba_neogeo
|
|
|
|
else
|
|
|
|
echo "Final Burn Alpha not fetched, skipping ..."
|
|
|
|
fi
|
2013-02-10 15:01:43 +00:00
|
|
|
}
|
|
|
|
|
2013-04-30 02:42:41 +00:00
|
|
|
source $BASE_DIR/libretro-build-common-xdk.sh
|
2013-04-23 23:06:34 +00:00
|
|
|
|
2013-05-03 15:22:09 +00:00
|
|
|
if [ $1 ]; then
|
2015-02-17 03:19:30 +00:00
|
|
|
$1
|
2013-05-03 15:22:09 +00:00
|
|
|
else
|
2015-02-17 03:19:30 +00:00
|
|
|
#build_libretro_beetle_lynx
|
|
|
|
build_libretro_beetle_gba
|
|
|
|
build_libretro_beetle_ngp
|
|
|
|
build_libretro_beetle_pce_fast
|
|
|
|
build_libretro_beetle_supergrafx
|
|
|
|
build_libretro_beetle_pcfx
|
|
|
|
build_libretro_mednafen_psx
|
|
|
|
build_libretro_beetle_vb
|
|
|
|
build_libretro_beetle_wswan
|
|
|
|
#build_libretro_beetle_bsnes
|
2016-08-05 15:59:12 +00:00
|
|
|
build_libretro_snes9x2010
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_genesis_plus_gx
|
|
|
|
build_libretro_fba
|
|
|
|
build_libretro_vba_next
|
|
|
|
build_libretro_fceumm
|
|
|
|
build_libretro_gambatte
|
|
|
|
build_libretro_nx
|
|
|
|
build_libretro_prboom
|
|
|
|
build_libretro_nestopia
|
|
|
|
build_libretro_tyrquake
|
2013-05-03 15:22:09 +00:00
|
|
|
fi
|