2013-12-09 01:10:42 +00:00
|
|
|
#!/bin/bash
|
2013-04-30 02:42:41 +00:00
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
|
|
|
echo $1
|
|
|
|
#exit 1
|
|
|
|
}
|
|
|
|
|
2014-04-26 22:58:30 +00:00
|
|
|
build_libretro_mednafen()
|
2013-04-30 02:42:41 +00:00
|
|
|
{
|
2014-06-21 16:22:10 +00:00
|
|
|
for core in pcfx wswan ngp gba; do
|
2014-04-26 22:58:30 +00:00
|
|
|
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
|
2014-03-16 15:09:12 +00:00
|
|
|
}
|
|
|
|
|
2014-06-18 23:38:24 +00:00
|
|
|
build_libretro_mednafen_pce_fast()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-mednafen-pce-fast" ]; then
|
|
|
|
echo "=== Building Mednafen PCE Fast ==="
|
|
|
|
cd libretro-mednafen-pce-fast
|
|
|
|
cd msvc
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2014-06-21 14:47:05 +00:00
|
|
|
build_libretro_mednafen_vb()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-mednafen-vb" ]; then
|
|
|
|
echo "=== Building Mednafen VB ==="
|
|
|
|
cd libretro-mednafen-vb
|
|
|
|
cd msvc
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2014-03-16 01:52:27 +00:00
|
|
|
build_libretro_s9x()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-s9x" ]; then
|
|
|
|
echo "=== Building SNES9x ==="
|
|
|
|
cd libretro-s9x/
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/snes9x_libretro$FORMAT.$FORMAT_EXT
|
|
|
|
else
|
|
|
|
echo "SNES9x not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-04-30 02:42:41 +00:00
|
|
|
build_libretro_s9x_next()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-s9x-next" ]; then
|
|
|
|
echo "=== Building SNES9x-Next ==="
|
|
|
|
cd libretro-s9x-next/
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 19:27:01 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/snes9x_next_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "SNES9x-Next not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_genplus()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-genplus" ]; then
|
|
|
|
echo "=== Building Genplus GX ==="
|
|
|
|
cd libretro-genplus/
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 18:26:23 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/genesis_plus_gx_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "Genplus GX not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-08-15 12:50:25 +00:00
|
|
|
build_libretro_vba_next()
|
2013-04-30 02:42:41 +00:00
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
2013-08-15 12:50:25 +00:00
|
|
|
if [ -d "libretro-vba-next" ]; then
|
2013-04-30 02:42:41 +00:00
|
|
|
echo "=== Building VBA-Next ==="
|
2013-08-15 12:50:25 +00:00
|
|
|
cd libretro-vba-next/
|
2013-04-30 02:42:41 +00:00
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 19:35:08 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/vba_next_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "VBA-Next not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-03-09 17:40:05 +00:00
|
|
|
build_libretro_mame078() {
|
|
|
|
cd "${BASE_DIR}"
|
|
|
|
if [ -d 'libretro-mame078' ]; then
|
|
|
|
echo '=== Building MAME 0.78 ==='
|
|
|
|
cd libretro-mame078
|
|
|
|
cd src/libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 21:12:54 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/mame078_libretro$FORMAT.$FORMAT_EXT
|
2014-03-09 17:40:05 +00:00
|
|
|
else
|
|
|
|
echo 'MAME 0.78 not fetched, skipping ...'
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-04-14 03:53:23 +00:00
|
|
|
build_libretro_fceumm()
|
2013-04-30 02:42:41 +00:00
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
2014-04-14 03:53:23 +00:00
|
|
|
if [ -d "libretro-fceumm" ]; then
|
|
|
|
echo "=== Building FCEUmm ==="
|
|
|
|
cd libretro-fceumm
|
|
|
|
cd src/drivers/libretro/msvc
|
2013-04-30 02:42:41 +00:00
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 20:33:20 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/fceumm_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
2014-04-14 03:53:23 +00:00
|
|
|
echo "FCEUmm not fetched, skipping ..."
|
2013-04-30 02:42:41 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_gambatte()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-gambatte" ]; then
|
|
|
|
echo "=== Building Gambatte ==="
|
|
|
|
cd libretro-gambatte/libgambatte
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 19:56:27 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/gambatte_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "Gambatte not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_nx()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-nx" ]; then
|
2013-06-02 21:15:03 +00:00
|
|
|
echo "=== Building NXEngine ==="
|
|
|
|
cd libretro-nx
|
|
|
|
cd nxengine-1.0.0.4/libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-16 21:53:16 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/nxengine_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "NXEngine not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_prboom()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-prboom" ]; then
|
|
|
|
echo "=== Building PRBoom ==="
|
|
|
|
cd libretro-prboom
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 16:44:19 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/prboom_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "PRBoom not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-03-17 12:31:11 +00:00
|
|
|
build_libretro_stella()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-stella" ]; then
|
|
|
|
echo "=== Building Stella ==="
|
|
|
|
cd libretro-stella
|
|
|
|
cd msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/stella_libretro$FORMAT.$FORMAT_EXT
|
|
|
|
else
|
|
|
|
echo "Stella not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-03-17 19:03:51 +00:00
|
|
|
build_libretro_picodrive()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-picodrive" ]; then
|
|
|
|
echo "=== Building Picodrive ==="
|
|
|
|
cd libretro-picodrive
|
|
|
|
cd platform/libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/picodrive_libretro$FORMAT.$FORMAT_EXT
|
|
|
|
else
|
2014-03-17 19:06:21 +00:00
|
|
|
echo "Picodrive not fetched, skipping ..."
|
2014-03-17 19:03:51 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-04-30 02:42:41 +00:00
|
|
|
build_libretro_nestopia()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-nestopia" ]; then
|
|
|
|
echo "=== Building Nestopia ==="
|
|
|
|
cd libretro-nestopia/libretro
|
|
|
|
cd msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 17:54:12 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE_LTCG/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/nestopia_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "Nestopia not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_tyrquake()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-tyrquake" ]; then
|
2014-03-15 16:57:35 +00:00
|
|
|
echo "=== Building TyrQuake ==="
|
2013-04-30 02:42:41 +00:00
|
|
|
cd libretro-tyrquake
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-03-15 16:57:35 +00:00
|
|
|
cp $MSVC_NAME/$RELEASE/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/tyrquake_libretro$FORMAT.$FORMAT_EXT
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
2014-03-15 16:57:35 +00:00
|
|
|
echo "TyrQuake not fetched, skipping ..."
|
2013-04-30 02:42:41 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
create_dist_dir()
|
|
|
|
{
|
|
|
|
if [ -d $RARCH_DIR ]; then
|
|
|
|
echo "Directory $RARCH_DIR already exists, skipping creation..."
|
|
|
|
else
|
|
|
|
mkdir $RARCH_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d $RARCH_DIST_DIR ]; then
|
|
|
|
echo "Directory $RARCH_DIST_DIR already exists, skipping creation..."
|
|
|
|
else
|
|
|
|
mkdir $RARCH_DIST_DIR
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
create_dist_dir
|