libretro-super/libretro-build-xdk360.sh
2017-09-16 09:53:20 +02:00

76 lines
1.8 KiB
Bash

#! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
BASE_DIR=$(pwd)
RARCH_DIR=$BASE_DIR/dist
RARCH_DIST_DIR=$RARCH_DIR/xdk360
FORMAT=_xdk360
FORMAT_EXT=lib
MSVC_NAME=msvc-2010-360
RELEASE_LTCG=Release_LTCG
RELEASE=Release
die()
{
echo $1
#exit 1
}
build_libretro_fba()
{
cd $BASE_DIR
if [ -d "libretro-fbalpha2012" ]; then
echo "=== Building Final Burn Alpha ==="
cd libretro-fbalpha2012/
cd svn-current/trunk
cd projectfiles/visualstudio-2010-libretro-360
cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/fbalpha2012_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR
else
echo "Final Burn Alpha not fetched, skipping ..."
fi
}
source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then
$1
else
# 4DO - not tested yet - could be endian unsafe
#build_libretro_4do
#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
#build_libretro_snes9x2010
build_libretro_snes9x
build_libretro_genesis_plus_gx
#build_libretro_fb_alpha
build_libretro_vba_next
build_libretro_fceumm
build_libretro_gambatte
build_libretro_nx
# O2EM - not tested yet - could be endian unsafe
#build_libretro_o2em
# PocketCDG - not tested yet - could be endian unsafe
#build_libretro_pocketcdg
# PokeMini - not tested yet - could be endian unsafe
#build_libretro_pokemini
# Prosystem - not tested yet - could be endian unsafe
#build_libretro_prosystem
build_libretro_prboom
build_libretro_stella
build_libretro_quicknes
build_libretro_nestopia
#build_libretro_tyrquake
#build_libretro_mame078
# Vecx - not tested yet - could be endian unsafe
#build_libretro_vecx
fi