Commit Graph
100 Commits
Author SHA1 Message Date
Anonymous Maarten e321995244 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)

Manual backport of dc2c83c383

(cherry picked from commit 4b2aa3f102)
2025-08-07 18:11:13 +02:00
Anonymous Maarten 6e77327789 ci+n3ds: avoid apt-get package manager
- use Unix Makefiles (with parallelization) CMake generator
- use binutils strings binary from devkitpro

( Manual backport of commit e6d200e51c )
( cherry picked from commit b36252b120 )
2025-07-28 00:10:50 +03:00
Anonymous Maarten f99f57ffd1 ci: build MSVC release binary on windows-2025
(cherry picked from commit 8605624158)
2025-07-12 13:08:54 +02:00
Anonymous Maarten 51e20f1666 ci: drop classic Intel compiler
1) The classic Intel compiler is depreated in favor of the oneapi compiler
2) SPA_FALLTHROUGH is used in pipewire's spa/utils/json.h, and causes build errors

(cherry picked from commit d2eb72fd14)
2025-02-23 21:40:48 +01:00
Anonymous Maarten a34c8403e7 ci: GitHub is retiring Ubuntu 20.04 support
backport of 8d3db06ff2

(cherry picked from commit b4d733619a)
2025-02-23 21:40:48 +01:00
Anonymous Maarten dc74448014 ci: clang32 on msys2 is EOL
backport of 70f657e520

(cherry picked from commit ed2c004c8a)
2025-02-23 21:40:40 +01:00
Anonymous Maarten 799ede831e testatomic: destroy threads + free all memory at quit to fix --trackmem
(cherry picked from commit 831c79d32f)
2025-02-01 11:02:53 -08:00
Anonymous Maarten 3f02118264 ci: bump to NetBSD 10.1
(cherry picked from commit 98c447802f)
(cherry picked from commit 18ecd2ccad)
2025-01-23 00:32:56 +03:00
Anonymous Maarten d7825af4de ci: bump FreeBSD to 14.2
[sdl-ci-filter netbsd]
[sdl-ci-filter freebsd]
(cherry picked from commit db97da4ccb)
2025-01-15 06:20:02 +03:00
Anonymous Maarten ebe561f916 Revert "cmake: consider X11 as not available when xext.h is not found"
This reverts commit fe5468799b.
2025-01-06 20:35:09 +01:00
Anonymous Maarten fe5468799b cmake: consider X11 as not available when xext.h is not found
This is user friendlier than straight up erroring

Backport of 16ad3e5af6
2025-01-05 16:06:01 +01:00
Anonymous Maarten 1fa217434b Avoid undefined signed overflow in SDLTest_RandomIntegerInRange
Partial backport of efba42a67b
2025-01-04 01:07:40 +01:00
Anonymous Maarten 123b967a99 Port back nolibc SDL_strtol implementations from SDL3 to SDL2 2025-01-02 21:46:28 +01:00
Anonymous Maarten 840638404a testautomation: port back SDL3's strtol and strtod tests
Triggered by b713e7581b
2025-01-02 01:31:34 +01:00
Anonymous Maarten fc608ffb5f cmake: really disable xrandr by default on Solarir
Fixes libsdl-org/SDL#10099
2024-12-28 11:57:03 +01:00
Anonymous Maarten 5ac94b519c cmake: disable xrandr by default on Solaris
Backport of 0be6dc5734

Fixes libsdl-org/SDL#10099
2024-12-28 04:04:31 +01:00
Anonymous Maarten e02f651c05 cmake: Solaris' SunPro has alternative way to link to pthread libraries
Fixes libsdl-org/SDL#10096

(cherry picked from commit 4fbd6cba60)
2024-12-28 03:46:52 +01:00
Anonymous Maarten 3c142abcb2 Build optimized stripped MinGW binary releases 2024-12-09 17:21:54 +01:00
Anonymous Maarten d890d2594a Add build-release.py updates from satellite libraries
Ported from fc2fd42197

[ci skip]
2024-12-08 04:34:44 +01:00
Anonymous Maarten af94954161 Add test sources to mingw release artifact 2024-12-07 02:05:15 +01:00
Anonymous Maarten c46bec009b vc: bump CMake compatibility version of sdl2-config.cmake 2024-12-05 04:30:34 +01:00
Anonymous Maarten ba433e4a5d ci: merge all workflows 2024-11-23 20:00:37 +01:00
Anonymous Maarten dface78331 ci: don't do 'brew install pkg-config' anymore
Assume it is installed by default
2024-11-22 21:47:15 +01:00
Anonymous Maarten e924f12a7b cmake: Compatibility with CMake < 3.10 will be removed in a future CMake version 2024-11-17 21:53:32 +01:00
Anonymous Maarten c672c0e80f ci: pin MSVC ARM Windows SDK version to 10.0.22621.0 2024-11-17 21:33:53 +01:00
Anonymous Maarten 48aa1cccf7 Port build-script from SDL3
[ci skip]
2024-11-02 01:58:46 +01:00
Anonymous Maarten e4126d8d6f Add parametrized release script
[ci skip]
2024-10-04 23:42:29 +02:00
Anonymous Maarten 2b2907db18 Add docs to mingw release and don't modify libtool files in mingw's Makefile 2024-10-01 23:04:32 +02:00
Anonymous Maarten 8291b1be36 Port SDL3 release scripts to SDL2
[skip ci]
2024-10-01 21:09:41 +02:00
Anonymous Maarten 57f1ea71ab Increase maximum line length of SDLTest_LogAllocations 2024-09-01 02:18:47 +02:00
Anonymous Maarten 2ae8b4c651 test: use SDL_test for parsing arguments in all non-interactive tests 2024-08-31 23:49:22 +02:00
Anonymous Maarten 47a525610c ci: build in RelWithDebInfo mode 2024-08-31 23:49:22 +02:00
Anonymous Maarten 510eda22f1 SDL_test: print stack traces of leaks on Windows
(ported from SDL3)
2024-08-31 23:49:22 +02:00
Anonymous Maarten 877c19da41 SDL_test: do late addres to name conversion, if libunwind supports it 2024-08-31 23:49:22 +02:00
Anonymous Maarten 622b511613 Copy sdlprocdump from SDL3 2024-08-31 23:49:22 +02:00
Anonymous Maarten 564765d22b ctest: fail if there are outstanding allocations
backport of b68ac011e0
2024-08-31 23:49:22 +02:00
Anonymous Maarten 1260ada519 SDL_test: use mutex based on SDL_atomic_t in memory tracking
SDL_Mutex or SDL_SpinLock cannot be used as these use SDL_malloc internally.

Backport of c7a1876536
2024-08-31 23:49:22 +02:00
Anonymous Maarten 764c44db02 cmake/test: don't test swift on ios/tvos platform 2024-08-14 10:35:43 +00:00
Anonymous Maarten 52090046fe cmake: ios and tvos applications need to link to SDL2main library 2024-08-14 10:35:43 +00:00
Anonymous Maarten 3d7007fb2d testgles: ignore GLES deprecation on Apple platforms 2024-08-14 10:35:43 +00:00
Anonymous Maarten 248cb3ca9c Fix -Wdeclaration-after-statement warnings 2024-08-14 10:35:43 +00:00
Anonymous Maarten 354a35c1d7 cmake: port back Apple changes from SDL3 2024-08-14 10:35:43 +00:00
Anonymous Maarten 5c013a4f0d ci: add GDK
SDL2 port of 31b3f5ea79
2024-08-04 17:17:43 +02:00
Anonymous Maarten 7cf3234efe cmake: SDL2 target is not always available 2024-08-04 15:52:16 +02:00
Anonymous Maarten 50a6a39dd6 cmake: use genexes for linking against apple frameworks 2024-07-27 17:13:52 +02:00
Anonymous Maarten 5d606eaae2 stdinc: c23 deprecated _Static_assert in favor of static_assert
(cherry picked from commit 22bfbdbc02)
2024-07-21 21:55:10 +03:00
Anonymous Maarten fd32342ced ci: build MSVC workflows using Ninja generator 2024-07-19 10:20:11 +00:00
Anonymous Maarten ab4370c247 cmake: detect ARM64EC and enable SDL_LIBC by default 2024-07-19 10:20:11 +00:00
Anonymous Maarten 7fb8b62a4d cmake: fix building UWP with non-MSVC generator 2024-07-19 10:20:11 +00:00
Anonymous Maarten 11c0dfbdfe Fix UWP build in non-UNICODE mode 2024-07-19 10:20:11 +00:00
Anonymous Maarten 256269afb3 sdl2-config.in: use backtics instead of $() for older shells
/bin/sh of Solaris does not understand $()
2024-07-14 19:36:46 +02:00
Anonymous Maarten 2eeb39298e pthread: timespec.tv_nsec must be less then 1000000000 ns 2024-07-14 17:29:07 +02:00
Anonymous Maarten bc39952b23 cmake: only add SDL_LIBC=0 compile options to SDL2 libraries 2024-07-12 23:09:56 +02:00
Anonymous Maarten a25f94c9a8 ci: run VC tests under sdlprocdump 2024-07-12 18:47:18 +02:00
Anonymous Maarten bba51871a8 cmake: only link SDL2 against test executables 2024-07-12 18:47:18 +02:00
Anonymous Maarten 8ae7841d91 Revert "Make sdl2-config interpreter configurable"
This reverts commit b9f005505b.

Making the interpreter configurable is a band-aid fix.
So revert the workaround until we know the actual cause.
2024-06-25 00:44:55 +02:00
Anonymous Maarten b9f005505b Make sdl2-config interpreter configurable 2024-06-23 23:30:50 +02:00
Anonymous Maarten 5e876db89f autotools needs to check d3d12sdklayers.h too 2024-05-28 17:02:26 +02:00
Anonymous Maarten 6c29778826 VC+d3d12: use __has_include to detect presence of d3d12 ehaders
backport of 4fa5006247
2024-05-27 02:42:20 +02:00
Anonymous Maarten 6c10201e58 cmake: direct3d12 renderer needs d3d12.h and d3d12sdklayers.h
Older MinGW releases don't ship d3d12sdklayers.h

backport of 3af4f120d0
2024-05-27 02:34:26 +02:00
Anonymous Maarten c79e616806 d3d12: older Windows SDK headers contain wrong function prototypes
Declare correct function pointers ourselves.

Backport of:
- 98fcf112e7
- 89a4d9ae67
2024-05-25 00:41:47 +02:00
Anonymous Maarten 54c435409b d3d12: xbox has no DXGI_PRESENT flags 2024-05-25 00:41:47 +02:00
Anonymous Maarten 62f35ab1b6 Use SDL_test + don't use macros
The structure of the existing loop makes the inner loop of the previous commit unnecessary.

Manual backport of 558630d59c
2024-05-16 17:54:13 +02:00
Anonymous Maarten 9216b7a5ee stdinc: modify default alloca prototype
For compatibilty with TinyCC.

Backport of 06758685a5
2024-04-10 10:05:08 +02:00
Anonymous Maarten eb185e8d88 VisualC: remove vulkan.hpp 2024-03-25 18:04:40 +01:00
Anonymous Maarten 3184936950 cmake: we only need a C++ compiler for Android, Haiku and UWP 2024-03-11 01:26:13 +01:00
Anonymous Maarten a420eb79bb cmake: run testautomation with CTest on ci 2024-01-21 23:44:53 +01:00
Anonymous Maarten 41fc398114 Move check for SDL_Delay upper bounds to testtimer
(cherry picked from commit f45761908a)
2024-01-21 23:44:53 +01:00
Anonymous Maarten 1737340978 Use helper_ddtod function to compare atan2 infinity cases
This fixes a test failure when building on mingw32 in Release mode.
2024-01-21 23:44:53 +01:00
Anonymous Maarten 69a6efcd1b Avoid using higher precision floating point numbers by using it in a function 2024-01-21 23:44:53 +01:00
Anonymous Maarten fbee0b86bf video: verify SDL_GetNumVideoDisplays is succesful 2024-01-21 23:44:53 +01:00
Anonymous Maarten 880c69392a testautomation_math: do relative comparison + more precise correct trigonometric values 2024-01-21 23:44:53 +01:00
Anonymous Maarten 811adaa342 Only test error message when using specific video drivers
The dummy driver does not sen an error message when passing
a NULL rect argument to SDL_SetTextInputRect.
2024-01-21 23:44:53 +01:00
Anonymous Maarten 472a415c8f video: move standard c, sse and lsx implementations of yuv2rgb to its own source 2024-01-18 17:06:27 -08:00
Anonymous Maarten d1c5038f16 testautomation: don't do float equality tests
(cherry picked from commit 474c8d0073)
2024-01-09 06:06:46 -08:00
Anonymous MaartenandSimon McVittie 3ff56fda1a testautomation: only require accelerated renderer with non-dummy video driver
Backported from SDL3 commit 85e3099b.

Co-authored-by: Simon McVittie <smcv@collabora.com>
Resolves: https://github.com/libsdl-org/SDL/issues/8799
2024-01-08 11:01:06 -08:00
Anonymous Maarten 10c292b055 cmake+xcode: use IMPORTED SHARED framework target 2023-12-10 11:50:11 +01:00
Anonymous Maarten 0134672345 cmake: copy sources to binary directory in separate target
Don't do it in POST_BUILD to avoid multiple parallel builds
stepping on each others toes.
Also don't use copy_if_different, but unconditionally copy it.
The build system should take care of dependencies.

SDL2 backport of fea6e7afb1
2023-11-28 23:03:30 +01:00
Anonymous Maarten baaac5cca3 cmake: Android expects SDL programs to be built as shared libraries 2023-11-23 03:39:36 +01:00
Anonymous Maarten 5abcfdb93e SDL_stdinc.h: fix compile warning when using SDL_PR[iux]64 on Android 2023-11-23 03:38:59 +01:00
Anonymous Maarten 4940b5dbc2 SDL_bsdjoystick: fix -Wundef warning on FreeBSD 2023-11-22 06:50:00 +03:00
Anonymous Maarten 4a3a9f3ad8 Older gcc does not support #pragma GCC diagnostic inside functions 2023-11-09 23:34:05 +01:00
Anonymous Maarten d38ccfa88f x11: Ignore deprecated declaration of XKeycodeToKeysym 2023-11-09 18:46:27 +01:00
Anonymous Maarten f0d65436fb ci: re-enable Intel compilers on ci 2023-11-09 18:07:10 +01:00
Anonymous Maarten adc0880520 cmake: also install pdb files of static libraries 2023-11-09 03:23:24 +01:00
Anonymous Maarten 8b1b6734f6 cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 2023-11-02 21:28:39 +01:00
Anonymous Maarten 517db6d887 cmake: reset check state before testing -fobjc-arc 2023-10-30 21:08:30 +01:00
Anonymous Maarten 20630b2e6c cmake: check -fobjc-arc compiler flag on Apple platforms 2023-10-30 19:56:46 +01:00
Anonymous Maarten 7774de0fe3 cmake: file(RELATIVE_PATH) needs 2 absolute paths 2023-10-30 19:45:49 +01:00
Anonymous Maarten 90255914a8 cmake: install pdb's when present 2023-10-22 18:53:34 +02:00
Anonymous Maarten e417c6cffe ci: stop FreeBSD job after 30 minutes 2023-10-11 00:23:10 +02:00
Anonymous Maarten 43c57e3239 triangle: don't read destination pixel when you're going to discard it anyways 2023-10-05 13:46:28 +02:00
Anonymous Maarten 2d5c05a69c blit_slow: don't read destination pixel when you're going to discard it anyways
(cherry picked from commit 4cd0c13823)
2023-10-04 19:42:46 -07:00
Anonymous Maarten 321c2f8f24 ci: disable Intel compilers 2023-10-02 09:14:29 +02:00
Anonymous Maartenandelahav 71b7790be8 snd_pcm_plugin_flush was removed in QNX 7.1 and later
Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:48:51 +02:00
Anonymous Maartenandelahav 933ec9e978 cmake: add qnx support
Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:48:51 +02:00
Anonymous Maartenandelahav a263cc2369 Allow the use of posix_spawn() instead of vfork/execlp()
Backport of #7041

Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:48:51 +02:00
Anonymous Maarten 92dc226018 cmake: make sure SDL_GetPrefPath is run before testfilesystem
60 seconds timeout ought to be sufficient.
2023-09-10 15:33:22 +02:00
Anonymous Maarten 2adebcd6cc ci: run tests in parallel 2023-09-10 15:20:34 +02:00
Anonymous Maarten b388f6e32d cmake: use MSVC_RUNTIME_LIBRARY to force MT 2023-09-09 19:16:31 +02:00