add audio/video dummies if nothing else available II.

This commit is contained in:
pionere 2022-01-13 09:33:20 +01:00 committed by Ryan C. Gordon
parent 398f9a0e40
commit a633a3c33e
2 changed files with 28 additions and 0 deletions

16
configure vendored
View File

@ -26893,6 +26893,22 @@ INSTALL_SDL2_CONFIG=$enable_sdl2_config
# Verify that we have all the platform specific files we need # Verify that we have all the platform specific files we need
if test x$have_audio != xyes; then
if test x$enable_audio = xyes; then
$as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
fi
SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
fi
if test x$have_video != xyes; then
if test x$enable_video = xyes; then
$as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
fi
SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
fi
if test x$have_misc != xyes; then if test x$have_misc != xyes; then
if test x$enable_misc = xyes; then if test x$enable_misc = xyes; then

View File

@ -4567,6 +4567,18 @@ AC_SUBST([INSTALL_SDL2_CONFIG], [$enable_sdl2_config])
# Verify that we have all the platform specific files we need # Verify that we have all the platform specific files we need
if test x$have_audio != xyes; then
if test x$enable_audio = xyes; then
AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY, 1, [ ])
fi
SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
fi
if test x$have_video != xyes; then
if test x$enable_video = xyes; then
AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY, 1, [ ])
fi
SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
fi
if test x$have_misc != xyes; then if test x$have_misc != xyes; then
if test x$enable_misc = xyes; then if test x$enable_misc = xyes; then
AC_DEFINE(SDL_MISC_DUMMY, 1, [ ]) AC_DEFINE(SDL_MISC_DUMMY, 1, [ ])