From 0e0f20338a4ae2373824437f7be85d10464063ac Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Mon, 6 Apr 2015 02:07:15 -0700 Subject: [PATCH] MAME's legacy rule is _gone_. libretro-super.sh now has multi-target, so this isn't needed anymore. --- libretro-build-common.sh | 60 ---------------------------------------- 1 file changed, 60 deletions(-) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index d6b79688..ac0299cb 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -386,63 +386,3 @@ create_dist_dir() { } create_dist_dir - - -########## LEGACY RULES -# TODO: Port these to modern rules - -build_libretro_mame_prerule() { - build_dir="$WORKDIR/libretro-mame" - - if build_should_skip mame "$build_dir"; then - echo "Core mame is already built, skipping..." - return - fi - - ret=0 - if [ -d "$build_dir" ]; then - echo '' - echo "=== Building MAME ===" - echo_cmd "cd \"$build_dir\"" - - local extra_args - [ "${MAME_GIT_TINY:=0}" -eq 1 ] && extra_args="$extra_args SUBTARGET=tiny" - - if [ -z "$NOCLEAN" ]; then - echo_cmd "$MAKE -f Makefile.libretro $extra_args platform=\"$FORMAT_COMPILER_TARGET\" \"-j$JOBS\" clean" - ret=$? - - if [ "$ret" != 0 ]; then - die 'Failed to clean MAME' - return $ret - fi - fi - - # For mame platforms that are CROSS_BUILD's (iOS/Android), we must make buildtools natively - if [ "$platform" = "ios" ]; then - echo_cmd "$MAKE -f Makefile.libretro platform=\"\" buildtools" || die 'Failed to build MAME buildtools' - fi - - # This hack is because mame uses $(CC) to comiple C++ code because "historical reasons" - # It can/should be removed when upstream MAME fixes it on their end. - MAME_COMPILER="REALCC=\"${CC:-cc}\" CC=\"${CXX:-c++}\"" - - # mame's tiny subtarget doesn't support UME - mame_targets="mame mess ume" - [ "$MAME_GIT_TINY" -eq 1 ] && mame_targets="mame mess" - - for target in $mame_targets; do - echo_cmd "$MAKE -f Makefile.libretro $extra_args \"TARGET=$target\" platform=\"$FORMAT_COMPILER_TARGET\" $MAME_COMPILER \"-j$JOBS\"" || die "Failed to build $target" - copy_core_to_dist "$target" - ret=$? - - # If a target fails, stop here... - [ $ret -eq 0 ] || break - done - - else - echo 'MAME not fetched, skipping ...' - fi - - build_save_revision $ret mame -}