Add prebuild directory and update git dot files

This commit is contained in:
Colin Sames
2026-04-03 17:47:53 +02:00
parent 7b07d01400
commit 09b97782e0
168 changed files with 154519 additions and 161085 deletions

View File

@@ -1,6 +1,9 @@
# Resolves pre-built SDL3 libraries based on PLATFORM and SDL_LINK_TYPE.
# SDL must be pre-built once per platform via scripts/build_sdl_windows.ps1
# or scripts/build_sdl_linux.sh before configuring this project.
#
# Windows: prebuilt/windows/ is committed to the repository.
# Run scripts/bootstrap_sdl_windows.ps1 once to (re)generate it.
# Linux: prebuilt/linux/ is built in-place on the Linux remote.
# Run scripts/bootstrap_sdl_linux.sh once after cloning.
set(SDL_PREBUILT_DIR "${CMAKE_SOURCE_DIR}/prebuilt/${PLATFORM}")
@@ -36,9 +39,8 @@ if(SDL_LINK_TYPE STREQUAL "dynamic" AND WIN32)
endif()
# On Linux with dynamic linking, embed the absolute path to the prebuilt lib
# directory in the binary's RPATH. The prebuilt/linux directory is built
# in-place on Linux by build_sdl_linux.sh and is never synced from Windows,
# so the path is always valid on the remote machine.
# directory in the binary's RPATH. prebuilt/linux is built in-place on the
# Linux remote so this path is always valid there.
if(SDL_LINK_TYPE STREQUAL "dynamic" AND UNIX AND NOT APPLE)
get_target_property(SDL3_SO_LOCATION SDL3::SDL3 LOCATION)
get_filename_component(SDL3_LIB_DIR "${SDL3_SO_LOCATION}" DIRECTORY)