Port SDL3 release scripts to SDL2

[skip ci]

(cherry picked from commit 8291b1be36)
This commit is contained in:
Anonymous Maarten
2024-09-16 22:56:12 +02:00
parent e9f5f3ac1f
commit 025fc35c87
14 changed files with 1214 additions and 21 deletions

View File

@@ -79,6 +79,8 @@ endif()
unset(_sdl2_library)
unset(_sdl2_dll_library)
set(SDL2_SDL2-static_FOUND FALSE)
set(_sdl2main_library "${SDL2_LIBDIR}/SDL2main.lib")
if(EXISTS "${_sdl2main_library}")
if(NOT TARGET SDL2::SDL2main)
@@ -110,7 +112,7 @@ if(EXISTS "${_sdl2test_library}")
endif()
set(SDL2_SDL2test_FOUND TRUE)
else()
set(SDL2_SDL2_FOUND FALSE)
set(SDL2_SDL2test_FOUND FALSE)
endif()
unset(_sdl2test_library)