Anonymous Maarten
17c70ee0aa
cmake: cannot detect deprecated apple-clang link options (they are not fatal)
...
So skip these
(cherry picked from commit 5f151f4532 )
2026-02-03 20:57:47 +01:00
Brad Smith
6d7bceb41d
cmake: Fix header detection with CheckUSBHID
...
Make use of check_include_files to be able to also include
stdint.h when checking for the headers. Fixes detection of
usbhid.h on OpenBSD.
/usr/include/usbhid.h:40:2: error: unknown type name 'uint32_t'
40 | uint32_t _usage_page;
| ^
(cherry picked from commit 410a35fbee )
2026-01-28 07:45:40 -08:00
Anonymous Maarten
bba304c0b4
cmake: add SDL_FULL_VERSION target property containing full SDL version
...
(cherry picked from commit d73e74f9bf )
2026-01-06 04:05:20 +01:00
Sam Lantinga
814deb9438
Updated to version 3.2.31 for development
2025-12-31 17:54:27 -08:00
Sam Lantinga
3588d09b1c
Updated to version 3.2.30 for release
2025-12-31 16:33:51 -08:00
Simon McVittie
aeca6a77cf
unix: If setuid or setgid, don't use GTK
...
GTK explicitly doesn't support being used setuid or setgid, and if SDL
loads and initializes GTK, GTK will exit the process if it
detects a setgid executable. This is incompatible with the historical
practice of making game executables setgid in order to write out a
shared high-score table on multi-user systems (which is security theatre
at best, because typical game runtime libraries are not hardened against
an untrusted caller, but making it regress would be a user-observable
regression in sdl2-compat).
Helps: https://github.com/libsdl-org/sdl2-compat/issues/564
Signed-off-by: Simon McVittie <smcv@debian.org >
(cherry picked from commit b6f4e10bf9 )
2025-12-30 17:13:51 -08:00
Sam Lantinga
a7de0d9a3e
Updated to version 3.2.29 for development
2025-12-02 13:02:25 -08:00
Sam Lantinga
7f3ae3d574
Updated to version 3.2.28 for release
2025-12-02 07:47:05 -08:00
yuanhecai
85012b6074
loongarch: add SDL_FillSurfaceRect4LSX opt
...
(cherry picked from commit dc5b136930 )
2025-11-06 07:29:51 -08:00
yuanhecai
14271c72f3
loongarch: add Blit8888to8888PixelAlphaSwizzleLSX opt
...
(cherry picked from commit 0b1eb4c841 )
2025-11-06 07:29:50 -08:00
Sam Lantinga
bca544448f
Updated to version 3.2.27 for development
2025-10-30 10:18:08 -07:00
Sam Lantinga
b140291cd0
Updated to version 3.2.26 for release
2025-10-30 09:10:42 -07:00
nmlgc
ff9599fb7e
build: Fix typo in SDL_uclibc target name for 32-bit Windows
...
(cherry picked from commit 7916af9910 )
2025-10-03 07:22:59 -07:00
mccakit
0448f20394
replace script with flags
...
(cherry picked from commit f6e711c377 )
2025-10-02 16:01:17 -07:00
mccakit
db07924104
static release build fix
...
(cherry picked from commit 2e4bc73916 )
2025-10-02 16:01:17 -07:00
mccakit
e60acdc477
android symbol export for release builds
...
(cherry picked from commit fe92d0a7bd )
2025-10-02 16:01:17 -07:00
Sam Lantinga
3eb9328d3e
Updated to version 3.2.25 for development
2025-10-02 11:36:07 -07:00
Sam Lantinga
a8589a8422
Updated to version 3.2.24 for release
2025-10-02 10:52:32 -07:00
Simon McVittie
0bdaaf6c76
build: Prefix SDL- to revision from REVISION.txt
...
This makes it possible to get the version number of an unknown SDL binary
from `strings libSDL3.so.0 | grep SDL-`, like we could for SDL 2.
Resolves: https://github.com/libsdl-org/SDL/issues/14114
Signed-off-by: Simon McVittie <smcv@collabora.com >
(cherry picked from commit 618b7b6c73 )
2025-10-02 09:09:03 -07:00
Simon McVittie
390197d3aa
build: Prefix version from git with SDL- rather than SDL3-
...
We can tell it's SDL 3 from the version number and git revision,
so there's no need to duplicate that in the prefix.
Signed-off-by: Simon McVittie <smcv@collabora.com >
(cherry picked from commit d5b79418f4 )
2025-10-02 09:09:03 -07:00
Ozkan Sezer
4d88280931
cmake: simd detection clean-up for Apple multi-arch configs.
...
(cherry picked from commit 83bb0f9105 )
2025-09-02 22:35:32 +03:00
Anonymous Maarten
e8cc359b5e
cmake: use 'TargetConditionals.h' on Apple for SIMD tests
...
(cherry picked from commit e15e2808f2 )
2025-09-02 22:35:20 +03:00
Anonymous Maarten
3b4a198655
cmake: use APPLE in dep_option
...
expands to <nothing> on e.g. Windows, which will be interpreted as true by cmake_dependent_option.
(cherry picked from commit 1e7d3b51de )
2025-09-02 22:35:02 +03:00
Sam Lantinga
03b36bac94
Updated to version 3.2.23 for development
2025-09-01 15:12:43 -07:00
Sam Lantinga
a96677bdf6
Updated to version 3.2.22 for release
2025-09-01 14:40:32 -07:00
Ozkan Sezer
7c189b1f17
cmake: revert commit 5d1bbd9 and change sse4.2 test
...
clang doesn't support -mcrc32 until version 14.0, therefore drop -mcrc32
use in sse 4.2 test, and change it to check _mm_cmpgt_epi64() instead of
_mm_crc32_u32(). without this, sse4.2 check was failing with clang <= 13
Fixes https://github.com/libsdl-org/SDL/pull/12223
(cherry picked from commit 875653658a )
2025-08-31 03:20:40 +03:00
Frank Praznik
ae915c6516
wayland: Add a sigtimedwait() implementation for OpenBSD
...
sigtimedwait() is an optional part of POSIX.1-2001, and OpenBSD doesn't implement it. Add a replacement implementation based on https://comp.unix.programmer.narkive.com/rEDH0sPT/sigtimedwait-implementation
(cherry picked from commit 1049426a76 )
2025-08-30 14:21:00 +03:00
Susko3
b2689ff76a
Avoid checking for HAVE_POSIX_SPAWN on Android
...
This makes the CMake build closer to SDL_build_config_android.h
as both will now use SDL_PROCESS_DUMMY.
(cherry picked from commit cd21bbe796 )
2025-08-28 04:10:16 -07:00
Ozkan Sezer
611940fb80
cmake: fall back to -Wconversion if -Wfloat-conversion isn't available
...
... during checks for valid isinf/isinff/isnan/isnanf macros.
(cherry picked from commit 98bed62259 )
2025-08-27 22:20:37 +03:00
ChaseKnowlden
c3828bb0a3
Keep MSVC Flags Consistent across CMake runs
...
(cherry picked from commit 10478c59db )
2025-08-12 19:39:44 -07:00
Sam Lantinga
c7e8977e60
Revert "Support Google Play 16 KB Page Size Requirement ( #13470 )"
...
This reverts commit edef6e66e9
If you need to support the Google Play 16 kiB page size requirement, the recommendation is to use NDK r28c or newer, which automatically aligns binaries correctly.
2025-08-07 11:41:43 -07:00
Sam Lantinga
8e46e5d8b4
Updated to version 3.2.21 for development
2025-08-04 11:54:34 -07:00
Sam Lantinga
96292a5b46
Updated to version 3.2.20 for release
2025-08-04 09:58:55 -07:00
Matthew Zavislak
edef6e66e9
Support Google Play 16 KB Page Size Requirement ( #13470 )
...
- See: https://developer.android.com/guide/practices/page-sizes#update-packaging
- Also, make min API uniform at 21 (from 16 and 23 in a few places)
(cherry picked from commit dc2c83c383 )
2025-07-31 16:21:02 -07:00
Sam Lantinga
a6ed8ab59d
Updated to version 3.2.19 for development
2025-07-14 11:44:22 -07:00
Sam Lantinga
913813a933
Updated to version 3.2.18 for release
2025-07-11 15:56:55 -07:00
Anonymous Maarten
4a4abe4240
cmake: remove /RTC1 from CXX flags when building with SDL_LIBC=OFF
...
(cherry picked from commit cfb8e591cb )
2025-07-11 10:00:22 -07:00
Ozkan Sezer
233fce456a
fix ARM64 linkage with Visual Studio >= 17.14 when SDL_LIBC is disabled
...
Reference issue: https://github.com/libsdl-org/SDL/issues/13254
(cherry picked from commit 2fb6abb9ad )
(cherry picked from commit fb0e03f262 )
2025-07-09 01:32:00 +03:00
Anonymous Maarten
08ebeaee5c
cmake: Android always needs a native HIDAPI implementation
...
(cherry picked from commit 89eef1bd34 )
2025-06-26 15:43:29 -07:00
Sam Lantinga
d726e98596
Updated to version 3.2.17 for development
2025-06-02 15:57:36 -07:00
Sam Lantinga
59693c8996
Updated to version 3.2.16 for release
2025-06-01 14:37:23 -07:00
Sam Lantinga
7f0a5d6a10
Updated to version 3.2.15 for development
2025-05-14 13:08:44 -07:00
Sam Lantinga
c038d6f7f8
Updated to version 3.2.14 for release
2025-05-13 14:24:40 -07:00
Sam Lantinga
50d02ad732
Updated to version 3.2.13 for development
2025-05-04 10:56:10 -07:00
Sam Lantinga
7dd2915475
Updated to version 3.2.12 for release
2025-05-04 10:09:23 -07:00
Sam Lantinga
a29c67ac94
Always enable D3D12 GPU on Windows
...
This isn't dependent on the render subsystem
Fixes https://github.com/libsdl-org/SDL/issues/12922
(cherry picked from commit ef54c3bf18 )
2025-04-29 08:53:40 -07:00
Anonymous Maarten
fabbc8d183
cmake: use CMAKE_ANDROID_NDK variable as root of Android ndk
...
This variable is always defined when targeting Android:
- when using the toolchain file shipped along the ndk
(using -DCMAKE_TOOLCHAIN_FILE=$ENV{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake)
- when using the toolchain file provided by CMake
(using -DCMAKE_SYSTEM_NAME=Android)
(cherry picked from commit 5b1e92ae88 )
2025-04-25 07:59:05 -07:00
Sam Lantinga
9827653c38
Updated to version 3.2.11 for development
2025-03-31 13:54:19 -07:00
Sam Lantinga
877399b2b2
Updated to version 3.2.10 for release
2025-03-31 13:12:19 -07:00
Andrei Tsurkan
5c224a3221
fix missing AVFoundation in CMakeLists.txt
...
(cherry picked from commit f7a89d19c6 )
2025-03-29 08:45:26 -07:00