From 30fb0b7e4fd73b29e74a31bf126e1b66709164ef Mon Sep 17 00:00:00 2001 From: AndresSM Date: Tue, 18 Mar 2014 15:07:30 -0500 Subject: [PATCH] add MAME/MESS rebuild options --- libretro-build-common.sh | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 3946d102..3d92ba03 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -340,23 +340,23 @@ build_libretro_mame() { echo '=== Building MAME ===' cd libretro-mame/0152 - "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean MAME' - "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build MAME' + "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean MAME' + "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build MAME' cp "mame_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" else echo 'MAME not fetched, skipping ...' fi } -build_libretro_mame_tiny() { +rebuild_libretro_mame() { cd "${BASE_DIR}" if [ -d 'libretro-mame' ]; then echo '=== Building MAME ===' cd libretro-mame/0152 - "${MAKE}" -f Makefile.libretro "TARGET=mame" "SUBTARGET=tiny" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean MESS' - "${MAKE}" -f Makefile.libretro "TARGET=mame" "SUBTARGET=tiny" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build MESS' - cp "mame_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}\\mame_tiny_libretro${FORMAT}.${FORMAT_EXT}" + "${MAKE}" -f Makefile.libretro "TARGET=mame" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean MAME' + "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build MAME' + cp "mame_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" else echo 'MAME not fetched, skipping ...' fi @@ -376,6 +376,20 @@ build_libretro_mess() { fi } +rebuild_libretro_mess() { + cd "${BASE_DIR}" + if [ -d 'libretro-mame' ]; then + echo '=== Building MESS ===' + cd libretro-mame/0152 + + "${MAKE}" -f Makefile.libretro "TARGET=mess" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean MESS' + "${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build MESS' + cp "mess_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" + else + echo 'MAME not fetched, skipping ...' + fi +} + build_libretro_ume() { cd "${BASE_DIR}" if [ -d 'libretro-mame' ]; then @@ -390,20 +404,6 @@ build_libretro_ume() { fi } -build_libretro_mess_tiny() { - cd "${BASE_DIR}" - if [ -d 'libretro-mame' ]; then - echo '=== Building MESS ===' - cd libretro-mame/0152 - - "${MAKE}" -f Makefile.libretro "TARGET=mess" "SUBTARGET=tiny" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean MESS' - "${MAKE}" -f Makefile.libretro "TARGET=mess" "SUBTARGET=tiny" platform="${FORMAT_COMPILER_TARGET}" ${COMPILER} "-j${JOBS}" || die 'Failed to build MESS' - cp "mess_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}\\mess_tiny_libretro${FORMAT}.${FORMAT_EXT}" - else - echo 'MAME not fetched, skipping ...' - fi -} - build_libretro_vbam() { cd "${BASE_DIR}" if [ -d 'libretro-vbam' ]; then