SDL: Increase requirement to 2.0.10.

SDL_RenderCopyF and SDL_RenderCopyExF are only available from SDL 2.0.10 onwards.
This commit is contained in:
Wedge009 2022-06-20 23:27:54 +10:00 committed by Pentarctagon
parent c3c47f828d
commit 9fccea96ea
4 changed files with 4 additions and 3 deletions

View file

@ -491,7 +491,7 @@ if(ENABLE_GAME OR ENABLE_TESTS)
find_package(VorbisFile REQUIRED) find_package(VorbisFile REQUIRED)
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
find_package(Fontconfig REQUIRED) find_package(Fontconfig REQUIRED)
find_package(SDL2 2.0.8 REQUIRED) find_package(SDL2 2.0.10 REQUIRED)
if(NOT MSVC) if(NOT MSVC)
# for everything else, use pkgconfig # for everything else, use pkgconfig
# SDL2_image and SDL2_mixer don't seem to have any cmake configuration available at all # SDL2_image and SDL2_mixer don't seem to have any cmake configuration available at all

View file

@ -18,7 +18,7 @@ order to build Wesnoth:
* Program Options * Program Options
* System * System
* SDL2 libraries: * SDL2 libraries:
* SDL2 >= 2.0.8 * SDL2 >= 2.0.10
* SDL2_image >= 2.0.2 (with PNG, JPEG, and WEBP support) * SDL2_image >= 2.0.2 (with PNG, JPEG, and WEBP support)
* SDL2_mixer >= 2.0.0 (with Ogg Vorbis support) * SDL2_mixer >= 2.0.0 (with Ogg Vorbis support)
* Fontconfig >= 2.4.1 * Fontconfig >= 2.4.1

View file

@ -351,7 +351,7 @@ if env["prereqs"]:
def have_sdl_other(): def have_sdl_other():
return \ return \
conf.CheckSDL2('2.0.8') & \ conf.CheckSDL2('2.0.10') & \
conf.CheckSDL2Mixer() & \ conf.CheckSDL2Mixer() & \
conf.CheckSDL2Image() conf.CheckSDL2Image()

View file

@ -6,6 +6,7 @@
### Multiplayer ### Multiplayer
### Lua API ### Lua API
### Packaging ### Packaging
* Increased minimum required version of SDL to 2.0.10.
### Terrain ### Terrain
### Translations ### Translations
### Units ### Units