From 7c2ffda5baf8ee242546af9ad80518c14df85104 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 7 Jul 2014 22:47:26 +0200 Subject: [PATCH] Add blueMSX and fMSX compilation to libretro-build.sh --- libretro-build-common.sh | 30 ++++++++++++++++++++++++++++++ libretro-build.sh | 2 ++ 2 files changed, 32 insertions(+) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index be013502..53a83212 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -343,6 +343,36 @@ build_libretro_beetle_snes() fi } +build_libretro_fmsx() +{ + cd "${BASE_DIR}" + if [ -d 'libretro-fmsx' ]; then + echo '=== Building fMSX ===' + cd libretro-fmsx + + "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die "Failed to clean fMSX" + "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die "Failed to build fMSX" + cp "fmsx_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'fMSX not fetched, skipping ...' + fi +} + +build_libretro_bluemsx() +{ + cd "${BASE_DIR}" + if [ -d 'libretro-bluemsx' ]; then + echo '=== Building blueMSX ===' + cd libretro-bluemsx + + "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die "Failed to clean blueMSX" + "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die "Failed to build blueMSX" + cp "bluemsx_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'blueMSX not fetched, skipping ...' + fi +} + build_libretro_stella() { cd "${BASE_DIR}" if [ -d 'libretro-stella' ]; then diff --git a/libretro-build.sh b/libretro-build.sh index fb9303a7..bca0ea24 100755 --- a/libretro-build.sh +++ b/libretro-build.sh @@ -94,6 +94,8 @@ mkdir -p "$RARCH_DIST_DIR" if [ $1 ]; then $1 else + build_libretro_bluemsx + build_libretro_fmsx build_libretro_bsnes_cplusplus98 build_libretro_bsnes build_libretro_beetle_lynx