Enhance config script to allow selecting SDL1 or 2 backends

This commit is contained in:
Michael Martin
2019-08-16 00:51:23 -07:00
parent ce92261641
commit b724f372dd
3 changed files with 39 additions and 17 deletions
+15
View File
@@ -75,6 +75,21 @@ case "$HOST_SYSTEM" in
esac
### SDL2 ###
LIB_SDL2_NAME="Simple DirectMedia Layer version 2.x"
case "$HOST_SYSTEM" in
WINSCW|GCCE|ARMV5)
LIB_SDL2_DETECT="false"
;;
*)
LIB_SDL2_DETECT="have_command sdl2-config"
LIB_SDL2_CFLAGS='$(sdl2-config --cflags)'
LIB_SDL2_LDFLAGS='$(sdl2-config --libs)'
LIB_SDL2_VERSION='$(sdl2-config --version)'
;;
esac
### libpng ###
LIB_libpng_NAME="libpng"
# libpng generally integrates with pkg-config, but that also generally