Add linux prebuild stuff

This commit is contained in:
Colin Sames
2026-04-03 17:59:19 +02:00
parent 09b97782e0
commit 3a281cb676
163 changed files with 154507 additions and 161084 deletions

View File

@@ -51,7 +51,7 @@ endmacro()
if(_sdl3_framework)
set(SDL3_SDL3-static_FOUND TRUE)
find_sdl3_static_dependencies()
find_package(SDL3-static CONFIG QUIET)
find_package(SDL3-static CONFIG)
if(SDL3_SDL3-static_FOUND AND SDL3-static_FOUND)
set(SDL3_SDL3-static_FOUND TRUE)
endif()
@@ -79,7 +79,7 @@ endif()
# Find SDL3::SDL3_test
if(_sdl3_framework)
find_package(SDL3_test CONFIG QUIET)
find_package(SDL3_test CONFIG)
if(SDL3_test_FOUND)
enable_language(OBJC)
set(SDL3_SDL3_test_FOUND TRUE)

View File

@@ -7,7 +7,7 @@
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
# The variable CVF_VERSION must be set before calling configure_file().
set(PACKAGE_VERSION "3.5.0")
set(PACKAGE_VERSION "3.2.10")
if (PACKAGE_FIND_VERSION_RANGE)
# Package version must be in the requested version range

View File

@@ -61,11 +61,10 @@ add_library(SDL3::SDL3-static STATIC IMPORTED)
set_target_properties(SDL3::SDL3-static PROPERTIES
COMPATIBLE_INTERFACE_BOOL "SDL3_SHARED"
COMPATIBLE_INTERFACE_STRING "SDL_VERSION"
INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:m>;\$<LINK_ONLY:dl>;SDL3::Headers"
INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:m>;SDL3::Headers"
INTERFACE_LINK_OPTIONS "-pthread"
INTERFACE_SDL3_SHARED "FALSE"
INTERFACE_SDL_VERSION "SDL3"
SDL_FULL_VERSION "3.5.0"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)

View File

@@ -6,8 +6,8 @@ includedir=${prefix}/include
Name: sdl3
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
URL: https://www.libsdl.org/
Version: 3.5.0
Version: 3.2.10
Requires.private:
Conflicts:
Libs: -L${libdir} -lSDL3 -pthread -lm -ldl
Libs: -L${libdir} -lSDL3 -pthread -lm
Cflags: -I${includedir}