(MSVC) Simplify build rules

This commit is contained in:
Twinaphex 2014-04-26 15:58:30 -07:00
parent 53996c2128
commit 98e31a7910
4 changed files with 16 additions and 69 deletions

View File

@ -6,64 +6,20 @@ die()
#exit 1
}
build_libretro_mednafen_pce_fast()
build_libretro_mednafen()
{
cd $BASE_DIR
if [ -d "libretro-mednafen" ]; then
echo "=== Building Mednafen PCE Fast ==="
cd libretro-mednafen
cd msvc/pce-fast
cmd.exe /k $MSVC_NAME.bat
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_pce_fast_libretro$FORMAT.$FORMAT_EXT
else
echo "Mednafen PCE Fast not fetched, skipping ..."
fi
}
build_libretro_mednafen_wswan()
{
cd $BASE_DIR
if [ -d "libretro-mednafen" ]; then
echo "=== Building Mednafen Wswan ==="
cd libretro-mednafen
cd msvc/wswan
cmd.exe /k $MSVC_NAME.bat
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_wswan_libretro$FORMAT.$FORMAT_EXT
else
echo "Mednafen Wswan not fetched, skipping ..."
fi
}
build_libretro_mednafen_ngp()
{
cd $BASE_DIR
if [ -d "libretro-mednafen" ]; then
echo "=== Building Mednafen NGP ==="
cd libretro-mednafen
cd msvc/ngp
cmd.exe /k $MSVC_NAME.bat
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_ngp_libretro$FORMAT.$FORMAT_EXT
else
echo "Mednafen NGP not fetched, skipping ..."
fi
}
build_libretro_mednafen_vb()
{
cd $BASE_DIR
if [ -d "libretro-mednafen" ]; then
echo "=== Building Mednafen VB ==="
cd libretro-mednafen
cd msvc/vb
cmd.exe /k $MSVC_NAME.bat
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_vb_libretro$FORMAT.$FORMAT_EXT
else
echo "Mednafen VB not fetched, skipping ..."
fi
for core in pce_fast pcfx wswan ngp vb; do
cd $BASE_DIR
if [ -d "libretro-mednafen" ]; then
echo "=== Building Mednafen ${core} ==="
cd libretro-mednafen
cd msvc/${core}
cmd.exe /k $MSVC_NAME.bat
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mednafen_${core}_libretro$FORMAT.$FORMAT_EXT
else
echo "Mednafen not fetched, skipping ..."
fi
done
}
build_libretro_mednafen_gba()

View File

@ -20,11 +20,8 @@ source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then
$1
else
build_libretro_mednafen_pce_fast
build_libretro_mednafen
build_libretro_mednafen_gba
build_libretro_mednafen_ngp
build_libretro_mednafen_vb
build_libretro_mednafen_wswan
build_libretro_s9x
build_libretro_s9x_next
build_libretro_genplus

View File

@ -79,10 +79,7 @@ source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then
$1
else
build_libretro_mednafen_pce_fast
build_libretro_mednafen_ngp
build_libretro_mednafen_wswan
build_libretro_mednafen_vb
build_libretro_mednafen
build_libretro_s9x_next
build_libretro_genplus
build_libretro_fba

View File

@ -35,10 +35,7 @@ source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then
$1
else
build_libretro_mednafen_pce_fast
build_libretro_mednafen_ngp
build_libretro_mednafen_vb
build_libretro_mednafen_wswan
build_libretro_mednafen
build_libretro_s9x_next
build_libretro_genplus
build_libretro_fba