mirror of https://github.com/encounter/SDL.git
configure: Allow building of the "offscreen" video target.
It was CMake-only before this.
This commit is contained in:
parent
e86d4bde54
commit
aeff8748a5
|
@ -888,6 +888,7 @@ enable_directfb_shared
|
||||||
enable_video_kmsdrm
|
enable_video_kmsdrm
|
||||||
enable_kmsdrm_shared
|
enable_kmsdrm_shared
|
||||||
enable_video_dummy
|
enable_video_dummy
|
||||||
|
enable_video_offscreen
|
||||||
enable_video_opengl
|
enable_video_opengl
|
||||||
enable_video_opengles
|
enable_video_opengles
|
||||||
enable_video_opengles1
|
enable_video_opengles1
|
||||||
|
@ -1681,6 +1682,8 @@ Optional Features:
|
||||||
--enable-video-kmsdrm use KMSDRM video driver [default=yes]
|
--enable-video-kmsdrm use KMSDRM video driver [default=yes]
|
||||||
--enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
|
--enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
|
||||||
--enable-video-dummy use dummy video driver [default=yes]
|
--enable-video-dummy use dummy video driver [default=yes]
|
||||||
|
--enable-video-offscreen
|
||||||
|
use offscreen video driver [default=no]
|
||||||
--enable-video-opengl include OpenGL support [default=yes]
|
--enable-video-opengl include OpenGL support [default=yes]
|
||||||
--enable-video-opengles include OpenGL ES support [default=yes]
|
--enable-video-opengles include OpenGL ES support [default=yes]
|
||||||
--enable-video-opengles1
|
--enable-video-opengles1
|
||||||
|
@ -22452,6 +22455,25 @@ $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckOffscreenVideo()
|
||||||
|
{
|
||||||
|
# Check whether --enable-video-offscreen was given.
|
||||||
|
if test "${enable_video_offscreen+set}" = set; then :
|
||||||
|
enableval=$enable_video_offscreen;
|
||||||
|
else
|
||||||
|
enable_video_offscreen=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$enable_video_offscreen = xyes; then
|
||||||
|
|
||||||
|
$as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
|
||||||
|
|
||||||
|
SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
|
||||||
|
have_video=yes
|
||||||
|
SUMMARY_video="${SUMMARY_video} offscreen"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
CheckQNXVideo()
|
CheckQNXVideo()
|
||||||
{
|
{
|
||||||
if test x$enable_video = xyes; then
|
if test x$enable_video = xyes; then
|
||||||
|
@ -25028,6 +25050,7 @@ $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -25287,6 +25310,7 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
|
||||||
fi
|
fi
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckWINDOWS
|
CheckWINDOWS
|
||||||
|
@ -25533,6 +25557,7 @@ fi
|
||||||
ARCH=haiku
|
ARCH=haiku
|
||||||
ac_default_prefix=/boot/system
|
ac_default_prefix=/boot/system
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -25599,6 +25624,7 @@ $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -25724,6 +25750,7 @@ $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -25820,6 +25847,7 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
|
||||||
CheckNativeClient
|
CheckNativeClient
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckInputEvents
|
CheckInputEvents
|
||||||
CheckPTHREAD
|
CheckPTHREAD
|
||||||
|
|
||||||
|
@ -25862,6 +25890,7 @@ $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckPTHREAD
|
CheckPTHREAD
|
||||||
|
@ -25912,6 +25941,7 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
|
21
configure.ac
21
configure.ac
|
@ -2344,6 +2344,19 @@ CheckDummyVideo()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckOffscreenVideo()
|
||||||
|
{
|
||||||
|
AC_ARG_ENABLE(video-offscreen,
|
||||||
|
[AS_HELP_STRING([--enable-video-offscreen], [use offscreen video driver [default=no]])],
|
||||||
|
, enable_video_offscreen=no)
|
||||||
|
if test x$enable_video_offscreen = xyes; then
|
||||||
|
AC_DEFINE(SDL_VIDEO_DRIVER_OFFSCREEN, 1, [ ])
|
||||||
|
SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
|
||||||
|
have_video=yes
|
||||||
|
SUMMARY_video="${SUMMARY_video} offscreen"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
dnl Set up the QNX video driver if enabled
|
dnl Set up the QNX video driver if enabled
|
||||||
CheckQNXVideo()
|
CheckQNXVideo()
|
||||||
{
|
{
|
||||||
|
@ -3612,6 +3625,7 @@ case "$host" in
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -3837,6 +3851,7 @@ case "$host" in
|
||||||
fi
|
fi
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckWINDOWS
|
CheckWINDOWS
|
||||||
|
@ -3998,6 +4013,7 @@ case "$host" in
|
||||||
ARCH=haiku
|
ARCH=haiku
|
||||||
ac_default_prefix=/boot/system
|
ac_default_prefix=/boot/system
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -4054,6 +4070,7 @@ case "$host" in
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -4157,6 +4174,7 @@ case "$host" in
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
@ -4241,6 +4259,7 @@ case "$host" in
|
||||||
CheckNativeClient
|
CheckNativeClient
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckInputEvents
|
CheckInputEvents
|
||||||
CheckPTHREAD
|
CheckPTHREAD
|
||||||
|
|
||||||
|
@ -4275,6 +4294,7 @@ case "$host" in
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckPTHREAD
|
CheckPTHREAD
|
||||||
|
@ -4317,6 +4337,7 @@ case "$host" in
|
||||||
CheckVisibilityHidden
|
CheckVisibilityHidden
|
||||||
CheckDeclarationAfterStatement
|
CheckDeclarationAfterStatement
|
||||||
CheckDummyVideo
|
CheckDummyVideo
|
||||||
|
CheckOffscreenVideo
|
||||||
CheckDiskAudio
|
CheckDiskAudio
|
||||||
CheckDummyAudio
|
CheckDummyAudio
|
||||||
CheckDLOPEN
|
CheckDLOPEN
|
||||||
|
|
|
@ -380,6 +380,7 @@
|
||||||
#undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM
|
#undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM
|
||||||
#undef SDL_VIDEO_DRIVER_ANDROID
|
#undef SDL_VIDEO_DRIVER_ANDROID
|
||||||
#undef SDL_VIDEO_DRIVER_EMSCRIPTEN
|
#undef SDL_VIDEO_DRIVER_EMSCRIPTEN
|
||||||
|
#undef SDL_VIDEO_DRIVER_OFFSCREEN
|
||||||
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
|
||||||
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
||||||
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
|
||||||
|
|
Loading…
Reference in New Issue