libretro-super/libretro-build-xdk1.sh
2014-03-15 16:08:16 +01:00

93 lines
2.2 KiB
Bash

#!/bin/bash
BASE_DIR=$(pwd)
RARCH_DIR=$BASE_DIR/dist
RARCH_DIST_DIR=$RARCH_DIR/xdk1
FORMAT=_xdk
FORMAT_EXT=lib
MSVC_NAME=msvc-2003-xbox1
RELEASE_LTCG=Release_LTCG
die()
{
echo $1
#exit 1
}
build_libretro_fba_cps1()
{
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
}
build_libretro_fba_cps2()
{
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
}
build_libretro_fba_neogeo()
{
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
}
build_libretro_fba()
{
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
build_libretro_fba_cps1
build_libretro_fba_cps2
build_libretro_fba_neogeo
else
echo "Final Burn Alpha not fetched, skipping ..."
fi
}
source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then
$1
else
build_libretro_mednafen
build_libretro_s9x_next
build_libretro_genplus
build_libretro_fba
build_libretro_vba_next
build_libretro_fceu
build_libretro_gambatte
build_libretro_nx
build_libretro_prboom
build_libretro_nestopia
build_libretro_tyrquake
fi