parent
35b983c052
commit
14c4ea3981
11 changed files with 875 additions and 5 deletions
37
configure.in
37
configure.in
|
@ -2098,6 +2098,30 @@ AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]])
|
|||
fi
|
||||
}
|
||||
|
||||
dnl Set up the QNX video driver if enabled
|
||||
CheckQNXVideo()
|
||||
{
|
||||
if test x$enable_video = xyes; then
|
||||
AC_DEFINE(SDL_VIDEO_DRIVER_QNX, 1, [ ])
|
||||
SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
|
||||
have_video=yes
|
||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
|
||||
SUMMARY_video="${SUMMARY_video} qnx"
|
||||
fi
|
||||
}
|
||||
|
||||
dnl Set up the QNX audio driver if enabled
|
||||
CheckQNXAudio()
|
||||
{
|
||||
if test x$enable_audio = xyes; then
|
||||
AC_DEFINE(SDL_AUDIO_DRIVER_QSA, 1, [ ])
|
||||
SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
|
||||
have_video=yes
|
||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
|
||||
SUMMARY_audio="${SUMMARY_audio} qsa"
|
||||
fi
|
||||
}
|
||||
|
||||
dnl Check to see if OpenGL support is desired
|
||||
AC_ARG_ENABLE(video-opengl,
|
||||
AC_HELP_STRING([--enable-video-opengl], [include OpenGL support [[default=yes]]]),
|
||||
|
@ -2573,6 +2597,10 @@ AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]])
|
|||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib=""
|
||||
;;
|
||||
*-*-nto*)
|
||||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib=""
|
||||
;;
|
||||
*)
|
||||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib="-lpthread"
|
||||
|
@ -3017,7 +3045,7 @@ CheckWarnAll
|
|||
|
||||
dnl Set up the configuration based on the host platform!
|
||||
case "$host" in
|
||||
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
|
||||
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
|
||||
case "$host" in
|
||||
*-raspberry-linux*)
|
||||
# Raspberry Pi
|
||||
|
@ -3082,6 +3110,9 @@ case "$host" in
|
|||
*-*-hpux*) ARCH=hpux ;;
|
||||
*-*-aix*) ARCH=aix ;;
|
||||
*-*-minix*) ARCH=minix ;;
|
||||
*-*-nto*) ARCH=nto
|
||||
CheckQNXVideo
|
||||
;;
|
||||
esac
|
||||
CheckVisibilityHidden
|
||||
CheckDeclarationAfterStatement
|
||||
|
@ -3123,6 +3154,7 @@ case "$host" in
|
|||
CheckLinuxVersion
|
||||
CheckRPATH
|
||||
CheckVivanteVideo
|
||||
|
||||
# Set up files for the audio library
|
||||
if test x$enable_audio = xyes; then
|
||||
case $ARCH in
|
||||
|
@ -3147,6 +3179,9 @@ case "$host" in
|
|||
SUMMARY_audio="${SUMMARY_audio} android"
|
||||
have_audio=yes
|
||||
;;
|
||||
nto)
|
||||
CheckQNXAudio
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# Set up files for the joystick library
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue