mirror of https://github.com/encounter/SDL.git
switch: update configure.ac
This commit is contained in:
parent
84f61daaab
commit
d74147dd8b
23
configure.ac
23
configure.ac
|
@ -4239,8 +4239,23 @@ AS_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS -g -O3"
|
EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS -g -O3"
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_VIDEO_STATIC_ANGLE"
|
EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_VIDEO_STATIC_ANGLE"
|
||||||
EXTRA_LDFLAGS="-march=armv8-a -fPIE -L${DEVKITPRO}/libnx/lib -lEGL -lglapi -ldrm_nouveau -lnx"
|
EXTRA_LDFLAGS="-march=armv8-a -fPIE -L${DEVKITPRO}/libnx/lib -lEGL -lglapi -ldrm_nouveau -lnx"
|
||||||
CheckDeclarationAfterStatement
|
|
||||||
|
|
||||||
|
CheckDeclarationAfterStatement
|
||||||
|
CheckClockGettime
|
||||||
|
CheckPTHREAD
|
||||||
|
|
||||||
|
# Set up files for the power library
|
||||||
|
if test x$enable_power = xyes; then
|
||||||
|
AC_DEFINE(SDL_POWER_SWITCH, 1, [ ])
|
||||||
|
SOURCES="$SOURCES $srcdir/src/power/switch/SDL_syspower.c"
|
||||||
|
have_power=yes
|
||||||
|
fi
|
||||||
|
# Set up files for the filesystem library
|
||||||
|
if test x$enable_filesystem = xyes; then
|
||||||
|
AC_DEFINE(SDL_FILESYSTEM_SWITCH, 1, [ ])
|
||||||
|
SOURCES="$SOURCES $srcdir/src/filesystem/switch/SDL_sysfilesystem.c"
|
||||||
|
have_filesystem=yes
|
||||||
|
fi
|
||||||
# Set up files for the video library
|
# Set up files for the video library
|
||||||
if test x$enable_video = xyes; then
|
if test x$enable_video = xyes; then
|
||||||
SOURCES="$SOURCES $srcdir/src/video/switch/*.c"
|
SOURCES="$SOURCES $srcdir/src/video/switch/*.c"
|
||||||
|
@ -4271,12 +4286,6 @@ AS_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
|
||||||
SOURCES="$SOURCES $srcdir/src/timer/switch/*.c"
|
SOURCES="$SOURCES $srcdir/src/timer/switch/*.c"
|
||||||
have_timers=yes
|
have_timers=yes
|
||||||
fi
|
fi
|
||||||
# Set up files for the thread library
|
|
||||||
if test x$enable_threads = xyes; then
|
|
||||||
AC_DEFINE(SDL_THREAD_SWITCH, 1, [ ])
|
|
||||||
SOURCES="$SOURCES $srcdir/src/thread/switch/*.c"
|
|
||||||
have_threads=yes
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
|
|
|
@ -333,7 +333,6 @@
|
||||||
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
|
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
|
||||||
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
|
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
|
||||||
#undef SDL_THREAD_WINDOWS
|
#undef SDL_THREAD_WINDOWS
|
||||||
#undef SDL_THREAD_SWITCH
|
|
||||||
|
|
||||||
/* Enable various timer systems */
|
/* Enable various timer systems */
|
||||||
#undef SDL_TIMER_HAIKU
|
#undef SDL_TIMER_HAIKU
|
||||||
|
@ -422,6 +421,7 @@
|
||||||
#undef SDL_POWER_ANDROID
|
#undef SDL_POWER_ANDROID
|
||||||
#undef SDL_POWER_EMSCRIPTEN
|
#undef SDL_POWER_EMSCRIPTEN
|
||||||
#undef SDL_POWER_HARDWIRED
|
#undef SDL_POWER_HARDWIRED
|
||||||
|
#undef SDL_POWER_SWITCH
|
||||||
|
|
||||||
/* Enable system filesystem support */
|
/* Enable system filesystem support */
|
||||||
#undef SDL_FILESYSTEM_HAIKU
|
#undef SDL_FILESYSTEM_HAIKU
|
||||||
|
@ -432,6 +432,7 @@
|
||||||
#undef SDL_FILESYSTEM_NACL
|
#undef SDL_FILESYSTEM_NACL
|
||||||
#undef SDL_FILESYSTEM_ANDROID
|
#undef SDL_FILESYSTEM_ANDROID
|
||||||
#undef SDL_FILESYSTEM_EMSCRIPTEN
|
#undef SDL_FILESYSTEM_EMSCRIPTEN
|
||||||
|
#undef SDL_FILESYSTEM_SWITCH
|
||||||
|
|
||||||
/* Enable assembly routines */
|
/* Enable assembly routines */
|
||||||
#undef SDL_ASSEMBLY_ROUTINES
|
#undef SDL_ASSEMBLY_ROUTINES
|
||||||
|
|
Loading…
Reference in New Issue