MAME's legacy rule is _gone_.

libretro-super.sh now has multi-target, so this isn't needed anymore.
This commit is contained in:
T. Joseph Carter 2015-04-06 02:07:15 -07:00
parent a51c355739
commit 5e48b01678

View File

@ -386,63 +386,3 @@ create_dist_dir() {
} }
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
}