2013-04-30 02:42:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
|
|
|
echo $1
|
|
|
|
#exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_mednafen()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-mednafen" ]; then
|
|
|
|
echo "=== Building Mednafen ==="
|
|
|
|
cd libretro-mednafen
|
|
|
|
cd msvc/pce-fast
|
|
|
|
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/mednafen_pce_fast_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
|
|
|
|
cd ../
|
|
|
|
cd wswan
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/mednafen_wswan_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
|
|
|
|
cd ../
|
|
|
|
cd ngp
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/mednafen_ngp_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
|
|
|
|
cd ../
|
|
|
|
cd vb
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/mednafen_vb_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "Mednafen not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/snes9x_next_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
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
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/genesis_plus_gx_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "Genplus GX not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_vba()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-vba" ]; then
|
|
|
|
echo "=== Building VBA-Next ==="
|
|
|
|
cd libretro-vba/
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release/vba_next_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "VBA-Next not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_fceu()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-fceu" ]; then
|
|
|
|
echo "=== Building FCEU ==="
|
|
|
|
cd libretro-fceu
|
|
|
|
cd fceumm-code/src/drivers/libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/fceumm_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "FCEU not fetched, skipping ..."
|
|
|
|
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
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/gambatte_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
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
|
|
|
|
cp $MSVC_NAME/Release_LTCG/nxengine_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
|
|
|
else
|
|
|
|
echo "NXEngine not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_nx()
|
|
|
|
{
|
|
|
|
cd "$BASE_DIR"
|
|
|
|
if [ -d "libretro-nx" ]; then
|
2013-04-30 02:42:41 +00:00
|
|
|
echo "=== Building NXEngine ==="
|
|
|
|
cd libretro-nx
|
|
|
|
cd nxengine-1.0.0.4/libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/nxengine_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
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
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/prboom_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "PRBoom not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/nestopia_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
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
|
|
|
|
echo "=== Building Tyr Quake ==="
|
|
|
|
cd libretro-tyrquake
|
|
|
|
cd libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2013-05-18 00:11:06 +00:00
|
|
|
cp $MSVC_NAME/Release_LTCG/tyrquake_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
2013-04-30 02:42:41 +00:00
|
|
|
else
|
|
|
|
echo "Tyr Quake not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-05-18 14:55:00 +00:00
|
|
|
build_libretro_nx()
|
|
|
|
{
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -d "libretro-nx" ]; then
|
|
|
|
echo "=== Building NXEngine ==="
|
|
|
|
cd libretro-nx
|
|
|
|
cd nxengine-1.0.0.4/libretro/msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $MSVC_NAME/Release_LTCG/nxengine_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
|
|
|
|
else
|
|
|
|
echo "NXEngine not fetched, skipping ..."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-04-30 02:42:41 +00:00
|
|
|
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
|