mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 11:14:11 +00:00
Mupen64plus is now supported by modern rules
This commit is contained in:
parent
2e20e35b31
commit
e42c31666c
@ -430,42 +430,6 @@ create_dist_dir
|
||||
########## LEGACY RULES
|
||||
# TODO: Port these to modern rules
|
||||
|
||||
build_libretro_mupen64() {
|
||||
if check_opengl; then
|
||||
build_dir="$WORKDIR/libretro-mupen64plus"
|
||||
|
||||
if build_should_skip mupen64plus "$build_dir"; then
|
||||
echo "Core mupen64plus is already built, skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -d "$build_dir" ]; then
|
||||
echo_cmd "cd \"$build_dir\""
|
||||
|
||||
if iscpu_x86_64 $ARCH; then
|
||||
dynarec="WITH_DYNAREC=x86_64"
|
||||
elif iscpu_x86 $ARCH; then
|
||||
dynarec="WITH_DYNAREC=x86"
|
||||
elif [ "${CORTEX_A8}" ] || [ "${CORTEX_A9}" ] || [ "$platform" = "ios" ]; then
|
||||
dynarec="WITH_DYNAREC=arm"
|
||||
fi
|
||||
|
||||
echo '=== Building Mupen 64 Plus ==='
|
||||
if [ -z "$NOCLEAN" ]; then
|
||||
echo_cmd "$MAKE $dynarec platform=\"$FORMAT_COMPILER_TARGET_ALT\" \"-j$JOBS\" clean" || die 'Failed to clean Mupen 64'
|
||||
fi
|
||||
|
||||
echo_cmd "$MAKE $dynarec platform=\"$FORMAT_COMPILER_TARGET_ALT\" $COMPILER \"-j$JOBS\"" || die 'Failed to build Mupen 64'
|
||||
|
||||
copy_core_to_dist "mupen64plus"
|
||||
build_save_revision $? "mupen64plus"
|
||||
else
|
||||
echo 'Mupen64 Plus not fetched, skipping ...'
|
||||
fi
|
||||
reset_compiler_targets
|
||||
fi
|
||||
}
|
||||
|
||||
build_libretro_mame_prerule() {
|
||||
build_dir="$WORKDIR/libretro-mame"
|
||||
|
||||
|
@ -222,8 +222,18 @@ libretro_tgbdual_git_url="https://github.com/libretro/tgbdual-libretro.git"
|
||||
register_core "mupen64plus" -theos_ios -ngc -ps3 -psp1 -wii
|
||||
libretro_mupen64plus_name="Mupen64Plus"
|
||||
libretro_mupen64plus_git_url="https://github.com/libretro/mupen64plus-libretro.git"
|
||||
libretro_mupen64plus_build_rule=legacy
|
||||
libretro_mupen64plus_build_legacy=build_libretro_mupen64
|
||||
#libretro_mupen64plus_build_rule=legacy
|
||||
#libretro_mupen64plus_build_legacy=build_libretro_mupen64
|
||||
libretro_mupen64plus_build_platform="$FORMAT_COMPILER_TARGET_ALT"
|
||||
libretro_mupen64Plus_build_configure() {
|
||||
if iscpu_x86_64 $ARCH; then
|
||||
core_build_args="WITH_DYNAREC=x86_64"
|
||||
elif iscpu_x86 $ARCH; then
|
||||
core_build_args="WITH_DYNAREC=x86"
|
||||
elif [ "${CORTEX_A8}" ] || [ "${CORTEX_A9}" ] || [ "$platform" = "ios" ]; then
|
||||
core_build_args="WITH_DYNAREC=arm"
|
||||
fi
|
||||
}
|
||||
|
||||
register_core "dinothawr" -theos_ios -ngc -ps3 -psp1 -qnx -wii
|
||||
libretro_dinothawr_name="Dinothawr"
|
||||
|
Loading…
Reference in New Issue
Block a user