2015-02-16 22:19:30 -05:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2013-02-10 10:01:43 -05:00
|
|
|
|
2013-04-30 22:19:07 -04:00
|
|
|
BASE_DIR=$(pwd)
|
2013-04-29 22:42:41 -04:00
|
|
|
RARCH_DIR=$BASE_DIR/dist
|
|
|
|
RARCH_DIST_DIR=$RARCH_DIR/xdk1
|
2013-02-10 10:01:43 -05:00
|
|
|
FORMAT=_xdk
|
2013-05-17 20:11:06 -04:00
|
|
|
FORMAT_EXT=lib
|
2013-02-10 10:01:43 -05:00
|
|
|
MSVC_NAME=msvc-2003-xbox1
|
2014-03-15 11:05:24 -04:00
|
|
|
RELEASE_LTCG=Release_LTCG
|
2014-03-15 12:57:35 -04:00
|
|
|
RELEASE=Release
|
2013-02-10 10:01:43 -05:00
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
2015-02-16 22:19:30 -05:00
|
|
|
echo $1
|
|
|
|
#exit 1
|
2013-02-10 10:01:43 -05:00
|
|
|
}
|
|
|
|
|
2014-03-09 14:20:02 -04:00
|
|
|
build_libretro_fba_cps1()
|
2013-02-10 10:01:43 -05:00
|
|
|
{
|
2015-02-16 22:19:30 -05:00
|
|
|
cd $BASE_DIR
|
2016-08-05 13:14:09 -04:00
|
|
|
if [ -d "libretro-fbalpha2012_cps1" ]; then
|
2015-02-16 22:19:30 -05:00
|
|
|
echo "=== Building Final Burn Alpha Cores (CPS1) ==="
|
2016-08-05 13:14:09 -04:00
|
|
|
cd libretro-fbalpha2012_cps1/
|
|
|
|
cd projectfiles/visualstudio-2003-libretro-xbox1
|
2015-02-16 22:19:30 -05:00
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2016-08-05 13:14:09 -04:00
|
|
|
cp $RELEASE_LTCG/fbalpha2012_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fbalpha2012_cps1_libretro$FORMAT.${FORMAT_EXT}
|
2015-02-16 22:19:30 -05:00
|
|
|
fi
|
2014-03-09 14:20:02 -04:00
|
|
|
}
|
2013-02-17 08:19:17 -05:00
|
|
|
|
2014-03-09 14:20:02 -04:00
|
|
|
build_libretro_fba_cps2()
|
|
|
|
{
|
2015-02-16 22:19:30 -05:00
|
|
|
cd $BASE_DIR
|
2016-08-05 13:14:09 -04:00
|
|
|
if [ -d "libretro-fbalpha2012_cps2" ]; then
|
2015-02-16 22:19:30 -05:00
|
|
|
echo "=== Building Final Burn Alpha Cores (CPS2) ==="
|
2016-08-05 13:14:09 -04:00
|
|
|
cd libretro-fbalpha2012_cps2/
|
|
|
|
cd projectfiles/visualstudio-2003-libretro-xbox1
|
2015-02-16 22:19:30 -05:00
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2016-08-05 13:14:09 -04:00
|
|
|
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fbalpha2012_cps2_libretro$FORMAT.${FORMAT_EXT}
|
2015-02-16 22:19:30 -05:00
|
|
|
fi
|
2014-03-09 14:20:02 -04:00
|
|
|
}
|
2013-02-17 08:19:17 -05:00
|
|
|
|
2014-03-09 14:20:02 -04:00
|
|
|
|
2014-03-09 16:11:00 -04:00
|
|
|
build_libretro_fba_neogeo()
|
2014-03-09 14:20:02 -04:00
|
|
|
{
|
2015-02-16 22:19:30 -05:00
|
|
|
cd $BASE_DIR
|
2016-08-05 13:14:09 -04:00
|
|
|
if [ -d "libretro-fbalpha2012_neogeo" ]; then
|
2015-02-16 22:19:30 -05:00
|
|
|
echo "=== Building Final Burn Alpha Cores (NeoGeo) ==="
|
2016-08-05 13:14:09 -04:00
|
|
|
cd libretro-fbalpha2012_neogeo/
|
|
|
|
cd projectfiles/visualstudio-2003-libretro-xbox1
|
2015-02-16 22:19:30 -05:00
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2016-08-05 13:14:09 -04:00
|
|
|
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fbalpha2012_neogeo_libretro$FORMAT.${FORMAT_EXT}
|
2015-02-16 22:19:30 -05:00
|
|
|
fi
|
2014-03-09 14:20:02 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_fba()
|
|
|
|
{
|
2015-02-16 22:19:30 -05:00
|
|
|
cd $BASE_DIR
|
2016-08-05 13:14:09 -04:00
|
|
|
if [ -d "libretro-fbalpha2012" ]; then
|
2015-02-16 22:19:30 -05:00
|
|
|
echo "=== Building Final Burn Alpha ==="
|
2016-08-05 13:14:09 -04:00
|
|
|
cd libretro-fbalpha2012/
|
2015-02-16 22:19:30 -05:00
|
|
|
cd svn-current/trunk
|
|
|
|
cd projectfiles/visualstudio-2003-libretro-xbox1
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2016-08-05 13:14:09 -04:00
|
|
|
cp $RELEASE_LTCG/fbalpha2012_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR
|
2014-03-09 14:20:02 -04:00
|
|
|
|
2015-02-16 22:19:30 -05: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 10:01:43 -05:00
|
|
|
}
|
|
|
|
|
2013-04-29 22:42:41 -04:00
|
|
|
source $BASE_DIR/libretro-build-common-xdk.sh
|
2013-04-23 19:06:34 -04:00
|
|
|
|
2013-05-03 11:22:09 -04:00
|
|
|
if [ $1 ]; then
|
2015-02-16 22:19:30 -05:00
|
|
|
$1
|
2013-05-03 11:22:09 -04:00
|
|
|
else
|
2017-09-16 03:59:42 -04:00
|
|
|
build_libretro_2048
|
2017-09-16 03:53:20 -04:00
|
|
|
build_libretro_4do
|
2015-02-16 22:19:30 -05:00
|
|
|
#build_libretro_beetle_lynx
|
2017-09-15 09:16:23 -04:00
|
|
|
#build_libretro_beetle_gba
|
2017-09-16 01:08:43 -04:00
|
|
|
build_libretro_beetle_ngp
|
2017-09-15 09:16:23 -04:00
|
|
|
#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
|
2015-02-16 22:19:30 -05:00
|
|
|
#build_libretro_beetle_bsnes
|
2017-09-15 09:16:23 -04:00
|
|
|
#build_libretro_snes9x2010
|
2017-09-16 01:28:06 -04:00
|
|
|
build_libretro_snes9x
|
2017-09-15 09:16:23 -04:00
|
|
|
#build_libretro_genesis_plus_gx
|
|
|
|
#build_libretro_fba
|
2015-02-16 22:19:30 -05:00
|
|
|
build_libretro_vba_next
|
|
|
|
build_libretro_fceumm
|
2017-09-16 00:25:08 -04:00
|
|
|
build_libretro_tgbdual
|
2017-09-16 00:29:13 -04:00
|
|
|
build_libretro_quicknes
|
2017-09-15 09:16:23 -04:00
|
|
|
#build_libretro_gambatte
|
|
|
|
#build_libretro_nx
|
2017-09-16 01:01:39 -04:00
|
|
|
build_libretro_o2em
|
2017-09-16 02:53:57 -04:00
|
|
|
build_libretro_pocketcdg
|
|
|
|
build_libretro_pokemini
|
2017-09-16 02:01:56 -04:00
|
|
|
build_libretro_prosystem
|
2017-09-16 00:37:05 -04:00
|
|
|
build_libretro_stella
|
2017-09-16 00:25:08 -04:00
|
|
|
build_libretro_prboom
|
2015-02-16 22:19:30 -05:00
|
|
|
build_libretro_nestopia
|
2017-09-15 09:16:23 -04:00
|
|
|
#build_libretro_tyrquake
|
2017-09-16 01:39:04 -04:00
|
|
|
build_libretro_vecx
|
2013-05-03 11:22:09 -04:00
|
|
|
fi
|