get aarch64-none-elf to configure & build

This commit is contained in:
Dave Murphy
2018-03-10 11:05:56 +00:00
parent 4cd981609b
commit 9a27289760
13 changed files with 153 additions and 0 deletions

66
configure vendored
View File

@@ -25619,6 +25619,72 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
have_timers=yes
fi
;;
aarch64-none-elf*)
ARCH=switch
EXTRA_CFLAGS="$EXTRA_CFLAGS -isystem${DEVKITPRO}/libnx/include -I${DEVKITPRO}/portlibs/switch/include -D__SWITCH__=1"
CheckDeclarationAfterStatement
CheckDiskAudio
CheckDummyAudio
# Set up files for the video library
if test x$enable_video = xyes; then
$as_echo "#define SDL_VIDEO_DRIVER_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/video/switch/*.c"
SUMMARY_video="${SUMMARY_video} switch"
have_video=yes
fi
# Set up files for the audio library
if test x$enable_audio = xyes; then
$as_echo "#define SDL_AUDIO_DRIVER_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/audio/switch/*.c"
SUMMARY_audio="${SUMMARY_audio} switch"
have_audio=yes
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
$as_echo "#define SDL_JOYSTICK_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/joystick/switch/*.c"
have_joystick=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/switch/*.c"
have_timers=yes
fi
# Set up files for the system power library
if test x$enable_power = xyes; then
$as_echo "#define SDL_POWER_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/power/switch/*.c"
have_power=yes
fi
# Set up files for the system filesystem library
if test x$enable_filesystem = xyes; then
$as_echo "#define SDL_FILESYSTEM_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/filesystem/switch/*.c"
have_filesystem=yes
fi
# Set up files for the thread library
if test x$enable_threads = xyes; then
$as_echo "#define SDL_THREAD_SWITCH 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/thread/switch/*.c"
have_threads=yes
fi
;;
*)
as_fn_error $? "
*** Unsupported host: Please add to configure.ac