Anonymous Maarten
58d0702948
ci+n3ds: avoid apt-get package manager
...
- use Unix Makefiles (with parallelization) CMake generator
- use binutils strings binary from devkitpro
(cherry picked from commit e6d200e51c )
2025-07-26 16:06:36 +02:00
Anonymous Maarten
554f08bac3
ci: build MSVC release binary on windows-2025
2025-07-12 01:25:08 +02: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
Anonymous Maarten
08ebeaee5c
cmake: Android always needs a native HIDAPI implementation
...
(cherry picked from commit 89eef1bd34 )
2025-06-26 15:43:29 -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
Anonymous Maarten
cbdc93b17f
cmake: make sure a SDL3 library is present when not using COMPONENTs
2025-03-01 17:54:45 +01:00
Anonymous Maarten
8a7beca122
camera: clear the spec when closing, so re-opening can probe again
2025-03-01 08:34:01 -08:00
Anonymous Maarten
70f657e520
ci: farewell, clang32 on msys2
2025-02-22 19:06:27 +01:00
Anonymous Maarten
5c214e5e9c
testcamera: SDL_AppQuit destroys state and SDL
...
This fixes a double-free of SDLTest_CommonState
2025-02-21 23:04:13 -08:00
Anonymous Maarten
03e00cd347
v4l2: map SDL_PIXELFORMAT_MJPG to V4L2_PIX_FMT_MJPEG
2025-02-21 23:04:13 -08:00
Anonymous Maarten
9d06145d6c
ci: fix type + names of intel compiler artifacts
2025-02-21 21:11:54 +01:00
Anonymous Maarten
7855842306
ci: disable precompiled headers for classic intel compiler
2025-02-21 04:49:33 +01:00
Anonymous Maarten
71d1de5d96
ci: add cppflags to CMAKE_(C|CXX)_FLAGS
2025-02-21 04:46:26 +01:00
Anonymous Maarten
28f0867948
SPA_FALLTHROUGH expands to nothing when using the Intel compiler
2025-02-21 04:30:19 +01:00
Anonymous Maarten
8d3db06ff2
ci: GitHub is retiring Ubuntu 20.04 support
2025-02-21 04:30:19 +01:00
Anonymous Maarten
c153f83df0
ci: enable ccache
2025-02-21 04:30:19 +01:00
Anonymous Maarten
baf69edfc7
Revert "cmake: build SDL_uclibc with -fPIC"
...
This reverts commit 9784414ddd .
Some platforms (e.g. ps2) do not support pic.
2025-02-20 20:37:53 +01:00
Anonymous Maarten
fdf8e5a704
ci: build static loongarch libraries with -fPIC
2025-02-20 20:28:57 +01:00
Anonymous Maarten
9784414ddd
cmake: build SDL_uclibc with -fPIC
2025-02-20 20:28:54 +01:00
Anonymous Maarten
523e6530a8
SDL_test: fix "'function': different 'const' qualifiers" warning in SDL_test_harness
2025-02-19 19:06:48 +01:00
Anonymous Maarten
303fd5ed5a
release: rename resources/cmake -> resources/CMake in dmg
2025-01-24 20:08:25 +01:00
Anonymous Maarten
fdf33f9047
xcode+cmake: Use SDL3.framework/SDL3 as IMPORTED_LOCATION
...
Not adding /SDL3 causes CMake to no longer set the RUNPATh on
binaries in the build directory.
It also breaks compatibility with CMake versions older then 3.28.
reverts c56a3f60fe (xcode+cmake: use SDL3.framework folder as IMPORTED_LOCATION)
reverts ad3c7b92f8 (xcode+cmake: use SDL3.framework folder as IMPORTED_LOCATION)
2025-01-24 20:07:51 +01:00
Anonymous Maarten
98c447802f
ci: bump to NetBSD 10.1
2025-01-22 19:39:17 +01:00
Anonymous Maarten
cb3cc28809
emscripten: pass --no-sandbox to the chrome web driver
...
This fixes running the Emscripten tests on Ubuntu 24.04.
2025-01-22 02:48:32 +01:00
Anonymous Maarten
efa6e7aece
android: add style to test apk's
2025-01-21 20:20:17 +01:00
Anonymous Maarten
3e530c6db1
cmake: remove superfluous cmake_minimum_required
2025-01-21 03:10:42 +01:00
Anonymous Maarten
7bff36e4b2
ci: add ubuntu arm job
...
f
2025-01-21 03:10:42 +01:00
Anonymous Maarten
37140aa9f7
cmake: expand libunwind
2025-01-21 03:10:42 +01:00
Anonymous Maarten
dbe3baeb0f
release: document using the xcframework with CMake
2025-01-18 06:29:17 -08:00
Anonymous Maarten
dd4f5df824
release: support android-X-ext-Y directories
...
[ci skip]
2025-01-16 20:59:13 +01:00
Anonymous Maarten
1006236aa6
ci: add summary to release.yml
...
[ci skip]
2025-01-16 18:24:13 +01:00
Anonymous Maarten
f79083d9bb
release: don't add test directory to mingw release archives
2025-01-13 04:32:49 +01:00
Anonymous Maarten
4ba4f0a106
release: add Android aar to devel zip archive
...
[ci skip]
2025-01-12 16:28:00 -08:00
Anonymous Maarten
d42b4ed961
Leave SDL_TriggerBreakpoint undefined on unknown platforms
2025-01-11 17:29:27 +01:00
Anonymous Maarten
bda90c3cb6
cmake: rename SDL_DISABLE_* CMake options to SDL_xxx
2025-01-10 04:23:32 +01:00
Anonymous Maarten
ebaa30d339
__debugbreak was introduced in Microsoft Visual Studio 2003
2025-01-09 16:04:14 -05:00
Anonymous Maarten
c8f3f1b461
_BitScanReverse was introduced in Microsoft Visual Studio 2005
2025-01-09 16:04:14 -05:00
Anonymous Maarten
a78104a47f
Disable long long support in the headers with SDL_NOLONGLONG
...
Some older toolchains don't support 'long long'.
2025-01-09 16:04:14 -05:00
Anonymous Maarten
16ad3e5af6
cmake: consider X11 as not available when xext.h is not found
...
This is user friendlier than straight up erroring
2025-01-05 16:05:25 +01:00
Anonymous Maarten
efba42a67b
tests: avoid undefined signed overflow
2025-01-04 01:06:29 +01:00
Anonymous Maarten
53aaf8c26b
cmake: custom generate-XXX targets must depend on outputs
2025-01-04 00:19:45 +01:00
Anonymous Maarten
db97da4ccb
ci: bump FreeBSD to 14.2
...
[sdl-ci-filter netbsd]
[sdl-ci-filter freebsd]
2025-01-03 23:24:41 +01:00
Anonymous Maarten
8b83a57847
Check that dll's built by MinGW do not link to unwanted runtime libraries
2025-01-03 16:56:22 +01:00
Anonymous Maarten
f8f8d87bfa
ci: always create binary packages if build succeeded
2025-01-02 01:15:28 +01:00
Anonymous Maarten
b713e7581b
stdlib: fix SDL_strtol of "0" with base 0
...
SDL_strtol("0") skipped the "0" octal prefix
and returned a failure because the remainder of the string was empty.
2025-01-02 01:15:28 +01:00
Anonymous Maarten
3842384a38
dynapi: trigger a breakpoint on a fatal error when SDL is built in debug mode
2025-01-02 01:15:28 +01:00
Anonymous Maarten and Ozkan Sezer
6cf6b160cd
SDL_hashtable: don't use assert from libc
...
Co-authored-by: Ozkan Sezer <sezeroz@gmail.com >
2025-01-02 01:15:28 +01:00
Anonymous Maarten
62bc2c4c92
SDL_malloc: don't define FORCEINLINE
...
The FORCEINLINE macro is also used by Windows SDK headers.
When it is an empty macro, FORCEINLINE-d functions will
get global visibility error and cause duplicate symbol link errors.
HRESULT_FROM_WIN32 is such a function.
2025-01-02 01:15:28 +01:00
Anonymous Maarten
4fccfb142e
cmake: avoid security cookies in SDL_uclibc when building with -DSDL_LIBC=ON
2025-01-02 01:15:28 +01:00
Anonymous Maarten
4fbf59ac3a
Implement __chkstk for arm64
...
Lifted from a previously built SDL3.dll
2025-01-02 01:15:28 +01:00
Anonymous Maarten
578ac0ef52
SDL_malloc: disable malloc stats
...
This avoids bringing in stdio.
2025-01-02 01:15:28 +01:00
Anonymous Maarten
31a4c92ee5
When building with libc enabled, we don't need to provide __chkstk ourselves
2025-01-02 01:15:28 +01:00
Anonymous Maarten
d5f08b8f4b
stdinc: use __has_include to detect <stdbool.h>
...
Newer emscripten SDK does an unconditional #include <stdbool.h>,
which clashes with our custom bool.h typedef
2024-12-29 20:54:12 +01:00
Anonymous Maarten
543f244965
tests: include SDL_build_config.h when HAVE_BUILD_CONFIG is defined
2024-12-29 20:08:06 +01:00
Anonymous Maarten
cc723c9e4b
ci: run emscripten on Ubuntu 22.04
...
python3-selenium does not seem to work on Ubuntu 24.04
2024-12-28 16:20:59 +01:00
Anonymous Maarten
0cb4a94c88
cmake: really disable xrandr by default on Solaris
...
Fixes libsdl-org/SDL#10099
2024-12-28 11:55:59 +01:00
Anonymous Maarten
0be6dc5734
cmake: disable xrandr by default on Solaris
...
Fixes libsdl-org/SDL#10099
2024-12-28 04:01:32 +01:00
Anonymous Maarten
4fbd6cba60
cmake: Solaris' SunPro has alternative way to link to pthread libraries
...
Fixes libsdl-org/SDL#10096
2024-12-28 03:46:17 +01:00
Anonymous Maarten
e25cc7a88f
cmake: cocoa video backend needs IOKit framework
...
Fixes libsdl-org/SDL#11628
2024-12-28 03:41:36 +01:00
Anonymous Maarten
38dd6bcd32
docs: gradle needs package identifier + change example Activity class path
2024-12-28 03:22:53 +01:00
Anonymous Maarten
f1232de3d2
cmake: add_dependencies must have at least 2 arguments
2024-12-28 02:43:12 +01:00
Anonymous Maarten
2664d36faf
cmake: avoid parallel generation of headers through intermediate target
...
See
https://cmake.org/cmake/help/latest/command/add_custom_command.html#example-generating-files-for-multiple-targets
2024-12-28 02:39:12 +01:00
Anonymous Maarten
df1f1c2e12
cmake: don't create relocatable packages by default with non-MSVC toolchains
2024-12-28 02:04:00 +01:00
Anonymous Maarten
af3d97dcac
Update build-scripts/build-release.py
2024-12-28 01:41:10 +01:00
Anonymous Maarten
bed16f77d1
cmake: define HAVE_MALLOC_H when malloc.h is found
2024-12-25 02:10:53 +01:00
Anonymous Maarten
f8d8bf8066
SDL_GetNumAllocations returns -1 when allocation counting is disabled
2024-12-22 12:20:04 -08:00
Anonymous Maarten
a33144fbc9
SDL_test: disable memory tracking if SDL does not count allocations
2024-12-22 12:20:04 -08:00
Anonymous Maarten
48b6b93fb6
cmake: make RelWithDebInfo the default configuration
2024-12-09 18:03:03 +01:00
Anonymous Maarten
e4215a04d9
gpu: make macro's function-like using do-while-0
2024-12-09 00:01:16 +01:00
Anonymous Maarten
fb71b44231
gpu: define EXPAND_ARRAY_IF_NEEDED macro once and make it function-like
2024-12-09 00:01:16 +01:00
Anonymous Maarten
0370b92d80
gpu: SDL_ClaimWindowForGPUDevice must set an error message on failure
2024-12-09 00:01:16 +01:00
Anonymous Maarten
19cc04a162
Add build-release.py updates from satellite libraries
...
[ci skip]
2024-12-08 02:16:02 +01:00
Anonymous Maarten
ec2ef5f9b5
dynapi: order headers for reproducible behavior
2024-12-02 18:25:48 +01:00
Anonymous Maarten
88926f2b73
emscripten: send drag and drop events
2024-11-24 13:22:46 -05:00
Anonymous Maarten
848fd1eab4
ci: don't do 'brew install pkg-config' anymore II
...
Assume it is installed by default
2024-11-22 20:52:57 +01:00
Anonymous Maarten
0007451222
ci: don't do 'brew install pkg-config' anymore
...
Assume it is installed by default
2024-11-22 20:46:03 +01:00
Anonymous Maarten
4fb955c80b
cmake: fix sdlcpu.cmake for C89 compilers
2024-11-20 05:35:50 +01:00
Anonymous Maarten
bd57cfdb55
ci: pin MSVC ARM Windows SDK version to 10.0.22621.0
2024-11-17 19:39:28 +01:00
Anonymous Maarten
c56a3f60fe
xcode+cmake: use SDL3.framework folder as IMPORTED_LOCATION
...
[ci skip]
2024-11-02 22:22:35 +01:00
Anonymous Maarten
e001a309be
create-release.py: use head of git ref as default commit
2024-11-02 04:20:32 +01:00
Anonymous Maarten
f543faf837
Allow in-tree build
2024-10-30 00:04:17 +01:00
Anonymous Maarten
8bf1a84200
ci: add include headers of build directory to ci artifacts
...
[sdl-ci-artifacts]
2024-10-25 17:47:26 +02:00
Anonymous Maarten
590e1196d0
snake: check allocated memory before use
2024-10-25 17:47:26 +02:00
Anonymous Maarten
20e01c6fbe
android: add (disabled) android.permission.INTERNET to AndroidManifest.xml
...
It's required for SDL3_net
2024-10-25 17:47:26 +02:00
Anonymous Maarten
0bec18245d
android: fix android.content.Context:getCacheDir JNI prototype
2024-10-22 18:03:34 +02:00
Anonymous Maarten
5492be23a1
ci: test Apple x64 on macos-13 runner
...
GitHub will remove macos-12 by December 3rd, 2024.
2024-10-17 02:28:20 +02:00
Anonymous Maarten
69433ee075
doc: explain build-scripts/create-release.py in the release checklist
2024-10-16 18:43:15 +02:00
Anonymous Maarten
075ae7db7d
ci: update LoongArch toolchain to 2023.08.08
2024-10-15 19:10:39 +02:00
Anonymous Maarten
4162bddca7
cmake: fix configuration with -DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON
2024-10-15 19:09:54 +02:00
Anonymous Maarten
817fa9a975
releases: don't add static library to MinGW binary release
2024-10-14 21:30:48 +02:00
Anonymous Maarten
45dfdfbb7b
Add parametrized build script
...
[ci skip]
2024-10-14 21:30:48 +02:00
Anonymous Maarten
b641c2a0db
Refactor gendynapi.py with the final goal to make it re-usable
2024-10-13 02:52:56 +02:00
Anonymous Maarten
173c168ff4
Default functions are already declared by the first SDL_dynapi_procs.h include
2024-10-13 02:52:56 +02:00
Anonymous Maarten
95ab38ba15
ci: actions/cache might return a boolean as string
...
https://github.com/actions/cache/issues/1466
2024-10-08 18:53:29 +02:00
Anonymous Maarten
f26dd52090
SDL_GetProcessProperties is missing a SDLCALL
2024-10-04 21:48:27 +02:00
Anonymous Maarten
bd4cd34a74
Add docs to mingw development archive
2024-10-04 18:19:07 +02:00
Anonymous Maarten
b3388d5753
Haiku does not have fdatasync, but has fsync
...
https://dev.haiku-os.org/ticket/17378
2024-09-30 15:10:03 +02:00
Anonymous Maarten
396afa2117
ci: bump haiku to r1beta5
2024-09-30 15:10:03 +02:00
Anonymous Maarten
7241dd9ec3
Add more SDL_Process tests
2024-09-30 03:03:33 +02:00
Anonymous Maarten
f6055432c8
Fix null-pointer dereference on failing SDL_SYS_CreateProcess
2024-09-30 03:03:33 +02:00