2013-12-09 01:10:42 +00:00
|
|
|
#!/bin/bash
|
2013-04-30 02:42:41 +00:00
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
|
|
|
echo $1
|
|
|
|
#exit 1
|
|
|
|
}
|
|
|
|
|
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() {
|
|
|
|
cd "$BASE_DIR"
|
|
|
|
if [ -d "libretro-${1}" ]; then
|
|
|
|
echo "=== Building ${1} ==="
|
|
|
|
cd libretro-${1}
|
|
|
|
cd ${2}
|
2014-06-22 23:50:36 +00:00
|
|
|
cd msvc
|
|
|
|
cmd.exe /k $MSVC_NAME.bat
|
2014-08-22 11:51:04 +00:00
|
|
|
cp $MSVC_NAME/${3}/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/${1}_libretro$FORMAT.$FORMAT_EXT
|
2014-06-22 23:50:36 +00:00
|
|
|
else
|
2014-08-22 11:51:04 +00:00
|
|
|
echo "${1} not fetched, skipping ..."
|
2014-06-22 23:50:36 +00:00
|
|
|
fi
|
2014-03-16 15:09:12 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 11:51:04 +00:00
|
|
|
build_libretro_beetle_bsnes() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE_LTCG
|
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_vba_next() {
|
|
|
|
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() {
|
2014-08-22 11:51:04 +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() {
|
|
|
|
build_libretro_generic_makefile "fceumm" "src/drivers/libretro" $RELEASE_LTCG
|
2013-04-30 02:42:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_libretro_gambatte()
|
|
|
|
{
|
2014-08-22 11:51:04 +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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
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() {
|
|
|
|
build_libretro_generic_makefile "tyrquake" "libretro" $RELEASE_LTCG
|
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
|