2015-02-17 03:19:30 +00:00
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2013-04-30 02:42:41 +00:00
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
echo $1
|
|
|
|
#exit 1
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
# $1 is corename
|
|
|
|
# $2 subdir. If there is no subdir, input "." here
|
|
|
|
# $3 build configuration - ie. release or release_ltcg
|
|
|
|
build_libretro_generic_makefile() {
|
2015-02-17 03:19:30 +00:00
|
|
|
cd "$BASE_DIR"
|
|
|
|
if [ -d "libretro-${1}" ]; then
|
|
|
|
echo "=== Building ${1} ==="
|
|
|
|
cd libretro-${1}
|
|
|
|
cd ${2}
|
|
|
|
cd msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
|
|
|
cp $MSVC_NAME/${3}/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/${1}_libretro$FORMAT.$FORMAT_EXT
|
|
|
|
else
|
|
|
|
echo "${1} not fetched, skipping ..."
|
|
|
|
fi
|
2014-03-16 15:09:12 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_bsnes() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_snes" "." $RELEASE_LTCG
|
2014-06-22 22:41:47 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_lynx() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_lynx" "." $RELEASE_LTCG
|
2014-06-22 00:12:59 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_wswan() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_wswan" "." $RELEASE_LTCG
|
2014-06-22 21:34:25 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_gba() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_gba" "." $RELEASE_LTCG
|
2014-06-21 16:34:11 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_ngp() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_ngp" "." $RELEASE_LTCG
|
2014-06-22 03:13:43 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_pce_fast() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_pce_fast" "." $RELEASE_LTCG
|
2014-06-18 23:38:24 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_supergrafx() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_supergrafx" "." $RELEASE_LTCG
|
2014-06-22 01:14:12 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_pcfx() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_pcfx" "." $RELEASE_LTCG
|
2014-06-21 14:47:05 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_vb() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mednafen_vb" "." $RELEASE_LTCG
|
2014-03-16 01:52:27 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_snes9x() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "snes9x" "libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_s9x_next() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "snes9x_next" "libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_genesis_plus_gx() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE_LTCG
|
2014-08-22 11:51:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_vba_next() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-03-09 17:40:05 +00:00
|
|
|
build_libretro_mame078() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "mame078" "libretro" $RELEASE
|
2014-03-09 17:40:05 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_fceumm() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "fceumm" "src/drivers/libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_gambatte()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "gambatte" "libgambatte/libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_nx() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "nxengine" "nxengine-1.0.0.4/libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_prboom() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "prboom" "libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_stella() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "stella" "." $RELEASE_LTCG
|
2014-03-17 12:31:11 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_picodrive() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "picodrive" "platform/libretro" $RELEASE_LTCG
|
2014-03-17 19:03:51 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_nestopia() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "nestopia" "libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_tyrquake() {
|
2015-02-17 03:19:30 +00:00
|
|
|
build_libretro_generic_makefile "tyrquake" "libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
create_dist_dir()
|
|
|
|
{
|
2015-02-17 03:19:30 +00:00
|
|
|
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
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
create_dist_dir
|