Anonymous Maarten
b9dcc5de60
ci: bump cross-platform-actions/action, used by the BSDs
2024-07-14 21:09:18 +02:00
Anonymous Maarten
933f2fc239
pthread: timespec.tv_nsec must be less then 1000000000 ns
2024-07-14 17:28:54 +02:00
Anonymous Maarten
c80665a696
Avoid code duplication in SDL_GetPixelFormatDetails
2024-07-14 01:20:02 +02:00
Anonymous Maarten
f13be04980
testaudio: use SDL_APP_FAILURE macro to signal failure
2024-07-13 17:06:54 +02:00
Anonymous Maarten
7277d69c0e
cmake: verify no undefined versioned symbols exist
2024-07-12 18:45:38 +02:00
Anonymous Maarten
ca36f6c43b
sdlprocdump: remove dead code
2024-07-12 18:38:03 +02:00
Anonymous Maarten
40f9fd854f
test: use SDL_HINT_(AUDIO,VIDEO)_DRIVER macro
2024-07-11 23:37:11 +02:00
Anonymous Maarten
83d4251540
hidapi: netbsd's iconv expects a 'char ** restrict src'
2024-07-11 08:12:42 -07:00
Anonymous Maarten
131108ee48
Remove references to SDL_CreatePixelFormat and SDL_DestroyPixelFormat
2024-07-11 08:12:42 -07:00
Anonymous Maarten
9ecc531970
ci: bump NetBSD and FreeBSD
2024-07-11 08:12:42 -07:00
Anonymous Maarten
b5a7b1ca89
ci: force PDB and runtime variables
2024-07-11 13:58:13 +02:00
Anonymous Maarten
628e083e02
ci: Build SDL3 with libusb support on MSVC
2024-07-10 23:42:39 +02:00
Anonymous Maarten
1664ac4fcb
hidapi: fix 'conversion from 'size_t' to 'int', possible loss of data' of libusb functions
2024-07-10 20:27:39 +02:00
Anonymous Maarten
d1eab18de2
cmake: build ci and and release with static runtime library
...
(The Visual Studio projects do this as well)
2024-07-10 19:47:27 +02:00
Anonymous Maarten
001c1b29df
cmake: remove SDL_STATIC_VCRT option
...
projects are expected to use CMAKE_MSVC_RUNTIME_LIBRARY to select the
runtime library.
With current CMake versions, this can be done with:
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=xxx
with xxx one of:
"MultiThreaded" -> -MT (static non-debug)
"MultiThreadedDLL" -> -MD (shared non-debug)
"MultiThreadeDebug" -> -MTd (static debug)
"MultiThreadedDebugDLL" -> -MDd (shared debug)
See CMake documentation for more information:
https://cmake.org/cmake/help/latest/policy/CMP0091.html
https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
2024-07-10 18:34:34 +02:00
Anonymous Maarten
1cddc7b66e
sdlprocdump: exceptions are not handled
2024-07-08 21:30:49 +02:00
Anonymous Maarten
c4cbbca185
sdlprocdump: ignore C++ exceptions
2024-07-08 20:48:33 +02:00
Anonymous Maarten
18c9bd21b5
sdlprocdump: become C90 compatible
2024-07-07 21:18:16 +02:00
Anonymous Maarten
4d6b23b68f
mingw: use DESTDIR to change the install location of the mingw package
2024-07-07 20:35:33 +02:00
Anonymous Maarten
be43dec798
sdlprocdump: store context and exception record in minidump
2024-07-06 17:36:16 +02:00
Anonymous Maarten
50ae47af5e
android: create android project in create-android-project.py python script
...
This script supersedes androidbuild.sh, and also supports using a SDL3 prefab archive
2024-07-05 21:12:26 +02:00
Anonymous Maarten
8290c4e82e
sdlprocdump: also print a stacktrace on a fatal exception
2024-07-01 20:49:52 +02:00
Anonymous Maarten
9601d98e7f
SDL_test: always use symbols with 64-suffix from DbgHelp
2024-07-01 20:49:40 +02:00
Anonymous Maarten
339d83bdfa
ci: assume all .dmp files in build directy are minidump files
2024-06-28 18:28:31 +02:00
Anonymous Maarten
d52ea20916
cmake: check for valid isinf/isinff/isnan/isnanf macros
2024-06-24 22:00:53 +02:00
Anonymous Maarten
5217c040be
Sort possible SDL_KeyCode values (swap SDLK_PERCENT and SDLK_DOLLAR)
2024-06-23 22:52:17 +02:00
Anonymous Maarten
2018882bf2
testmanymouse: enable raw keyboard events on Windows
2024-06-22 11:35:00 -07:00
Anonymous Maarten
99d28ca485
testmanymouse: fix argument parsing
2024-06-22 14:43:06 +02:00
Anonymous Maarten
cf267e4985
Fix -Wunused-variable warning in src/video/x11/SDL_x11events.c
2024-06-21 17:39:37 +02:00
Anonymous Maarten
0f27686a51
tests: run tests under a minimal debugger that can create minidumps
...
Tests on ci are run using this dumper, and will upload the minidumps.
2024-06-21 12:39:11 +02:00
Anonymous Maarten
72d5f39e5c
Make testnative (on win32) UNICODE compatible
2024-06-20 15:40:32 +02:00
Anonymous Maarten
992f80eb51
testnative: include SDL_build_config.h instead of SDL_internal.h
2024-06-20 15:40:32 +02:00
Anonymous Maarten
122c3e6a81
ci: create simpler Gradle testspriteminimal project instead
2024-06-18 00:38:35 +02:00
Anonymous Maarten
1a68d846de
Create a functional CMake project using androidbuild.sh
2024-06-18 00:11:44 +02:00
Anonymous Maarten
a64960cfc0
SDL_GLContext is not a void* pointer anymore
2024-06-15 14:44:09 +02:00
Anonymous Maarten
031dc0743f
Use an opaque struct typedef for SDL_GLContext
...
Using a struct typedef instead of a void pointer results in extra C typechecks
2024-06-15 01:43:22 +02:00
Anonymous Maarten
32907a9606
Rename SDL_Swap(16|32|64)(LE|BE) to SDL_Swap(LE|BE)(16|32|64)
2024-06-12 02:29:39 +02:00
Anonymous Maarten
ef6123886e
Add SDL_ReadS8 and SDL_WriteS8
2024-06-12 01:39:08 +02:00
Anonymous Maarten
657c0135b1
android: android release binary should only contain a shared SDL3 library
2024-06-10 18:04:18 +02:00
Anonymous Maarten
dd0bb25f66
cmake: remove SDL_STATIC_PIC cmake option.
...
Use CMAKE_POSITION_INDEPENDENT_CODE instead
2024-06-10 18:04:18 +02:00
Anonymous Maarten
fd2b9c0602
cmake: don't check c++ compiler flags for asan when CXX is not enabled
2024-06-01 10:18:15 +02:00
Anonymous Maarten
6896c4c3bf
tests: testcases accept a void pointer argument
2024-05-31 19:18:24 +02:00
Anonymous Maarten
d5060423a2
testplatform: fix leak at exit time
...
A leak was present at exit time on the Emscripten platform
2024-05-31 18:53:36 +02:00
Anonymous Maarten
4b0f52b04e
cmake: fall back to per-cpu test when all-in-one test fails
...
The 'all-in-one' test fails for Emscripten because try_compile does not copy back the actual binary:
the wasm file contains the machine parseable strings, not the html or js file(s).
2024-05-31 18:53:21 +02:00
Anonymous Maarten
ddb826d1a0
VC+d3d12: spread test for __has_include and d3d12.h test over multiple lines
2024-05-27 03:02:10 +02:00
Anonymous Maarten
279fb3acc3
release: build mingw binaries on Ubuntu 24.04
...
Ubuntu 22.04 ships with mingw that does not support direct3d12.
[ci skip]
2024-05-27 02:30:51 +02:00
Anonymous Maarten
4fa5006247
VC+d3d12: use __has_include to detect presence of d3d12 ehaders
2024-05-27 00:44:53 +02:00
Anonymous Maarten
bba76859f5
cmake: detect CPU architecture in 1 compilation
2024-05-26 23:52:48 +02:00
Anonymous Maarten
3af4f120d0
cmake: direct3d12 renderer needs d3d12.h and d3d12sdklayers.h
...
Older MinGW releases don't ship d3d12sdklayers.h
2024-05-26 23:00:41 +02:00
Anonymous Maarten
fefa47e409
dropfile: main callbacks need extra CMake care on UWP
2024-05-25 16:35:11 +02:00
Anonymous Maarten
78e25d4994
testdropfile: convert to use callbacks
2024-05-25 04:44:07 +02:00
Anonymous Maarten
89a4d9ae67
cmake+d3d12: d3d12 now builds succesfully on older Windows SDKs, so simplify the checks
2024-05-24 21:48:04 +02:00
Anonymous Maarten
98fcf112e7
d3d12: older Windows SDK headers contain wrong function prototypes
...
Declare correct function pointers ourselves.
2024-05-24 19:39:45 +02:00
Anonymous Maarten
f3695ef34e
VC: don't import Microsoft.CPP.UpgradeFromVC[67]0.props projects
...
Only thing these do is define a _VC80_UPGRADE macro.
2024-05-24 11:13:40 +02:00
Anonymous Maarten
86b2f441c0
release: create arm64 Visual Studio binaries
...
[skip ci]
2024-05-23 00:13:10 +02:00
Anonymous Maarten
3c00af1ac6
cmake: preseed CMake cache on MSVC to speed up configuration
2024-05-22 21:03:12 +02:00
Anonymous Maarten
e10666397e
ci: build simple Android SDL app using gradle
2024-05-22 20:19:18 +02:00
Anonymous Maarten
8954e42bcb
xcode: cmake scripts inside frameworks in side xcframework differ from the top cmake script
2024-05-22 20:17:13 +02:00
Anonymous Maarten
e10207e831
cmake: disallow '#include "SDL.h"'
2024-05-22 20:17:13 +02:00
Anonymous Maarten
85c87f4140
release: use git archive to get sources
2024-05-22 01:28:44 +02:00
Anonymous Maarten
9b0203d9b1
release: Include pdb in Visual Studio release artifacts + build in C:\temp
2024-05-22 01:28:44 +02:00
Anonymous Maarten
45081db9d4
Build Android prefab in releaser.py script
...
[ci skip]
2024-05-22 01:28:44 +02:00
Anonymous Maarten
2123b84fbe
SDL_test: add --hide-cursor to help
2024-05-21 22:56:29 +02:00
Anonymous Maarten
d3d7c04bf8
testcamera: libSDL3_test destroys the window and renderer
...
This fixes a "DEBUG: Parameter 'renderer' is invalid" message when exiting testcamera.
2024-05-17 14:39:29 +02:00
Anonymous Maarten
18225f7bb5
libSDL3_test: don't remove windows and renders when quiting
...
This fixes a "DEBUG: Parameter 'texture' is invalid" message when exiting testcamera.
2024-05-17 14:39:29 +02:00
Anonymous Maarten
a7d4ee05f6
video: hide window before destroying properties
...
This fixes a few "DEBUG: Parameter 'props' is invalid" messages, when exiting testcamera.
2024-05-17 14:39:29 +02:00
Anonymous Maarten
690875d555
testiconv: free all memory to fix --trackmem
2024-05-17 14:39:29 +02:00
Anonymous Maarten
831c79d32f
testatomic: destroy threads + free all memory at quit to fix --trackmem
2024-05-17 14:39:29 +02:00
Anonymous Maarten
a50e0319d5
ci: retry package creation multiple times
...
DMG creation on macOS occasionally fails, so try multiple times
https://gitlab.kitware.com/cmake/cmake/-/issues/25671
2024-05-16 22:55:57 +02:00
Anonymous Maarten
027856b9fa
Revert changes to SDL_androidsensor.c
2024-05-16 16:47:25 +02:00
Anonymous Maarten
88980aeb21
android+test: testcamera needs CAMERA permissions
2024-05-16 16:43:53 +02:00
Anonymous Maarten
c7205ab6b5
cmake: don't generate SDL3 jar for CMake versions < 3.19
2024-05-15 18:31:37 +02:00
Anonymous Maarten
a4371d28ac
doc: document how to use generator expressions + explain why we no longer provide CMake variables
2024-05-11 17:20:16 -04:00
Anonymous Maarten
818721fc9d
ci: disable building docs on mingw32/clang32
...
See https://github.com/msys2/MINGW-packages/pull/20085
2024-05-07 22:35:31 +02:00
Anonymous Maarten
9aff68746f
cmake: add khronos include directories with PRIVATE visibility
2024-05-07 17:37:21 +02:00
Anonymous Maarten
8f4cab0f83
ci: fix dmg release artifacts
...
- build-release.py: use absolute paths instead of resolved paths
- xcode: run the shell script with 'set -ex' for extra verbosity +
failing when an error happens
- On macOS ci, /tmp resolves to /private/tmp, causing the shell script
to not find the SDL3.xcframework. So don't use /tmp.
2024-05-05 01:30:07 +02:00
Anonymous Maarten
a8526f5a19
cmake: disable documentation installation by default
2024-05-02 19:54:37 +02:00
Anonymous Maarten
911fc9b17e
testffmpeg: treat Khronos headers as system headers
2024-04-18 09:10:15 -07:00
Anonymous Maarten
7dd4f1ec22
SDL3 removed SDL_HINT_RENDER_SCALE_QUALITY hint
...
textures now default to linear filtering, use SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST) if you want nearest pixel mode instead
2024-04-17 16:38:15 -07:00
Anonymous Maarten
07b7ec68eb
Add SDLTest_CompareMemory function to compare memory ranges
2024-04-15 03:05:05 -10:00
Anonymous Maarten
9f83647aec
cmake: switch iOS and watchOS
2024-04-08 19:25:38 +02:00
Anonymous Maarten
2f26c58504
cmake: fix typo in cmake/sdlplatform.cmake
2024-04-02 23:44:15 +02:00
Anonymous Maarten
143b070074
cpuinfo: fix -Wmissing-prototypes warning
2024-04-02 18:57:36 +02:00
Anonymous Maarten
63cb541797
cmake: set SYSTEM property in SDL3Config.cmake for compatibility with older CMake versions
2024-04-01 20:09:51 +02:00
Anonymous Maarten
4eb0f10dda
cmake: install SDL headers with SYSTEM property disabled
...
This causes the SDL include path to be added using -I instead of -isystem
2024-04-01 18:38:47 +02:00
Anonymous Maarten
fb8ac1ab7d
ci: verify SDL build system does not include installed SDL headers
2024-04-01 18:38:47 +02:00
Anonymous Maarten
19b01c39b0
ci: don't fix pspsdk toolchain anymore
2024-04-01 18:38:47 +02:00
Anonymous Maarten
72cf9c0ef4
test: don't run testautomation in parallel
2024-03-29 21:11:35 +01:00
Anonymous Maarten
a65982e15d
testevdev: include SDL_internal.h first, and fixup SDL_main.h
2024-03-26 00:10:40 +01:00
Anonymous Maarten
58f2e102a9
visualc: filters also contained 2 wrong include headers
2024-03-25 18:02:05 +01:00
Anonymous Maarten
c7d32ff64b
visualc: rename/remove 2 include paths
2024-03-25 17:10:31 +01:00
Anonymous Maarten
cf3cf0e106
dmg: fix SDL_version.h issue in sdl3-config-version.cmake
2024-03-24 20:15:42 +01:00
Anonymous Maarten
beb52ed54a
pen: remove stray '#include <stdio.h>'
2024-03-24 16:58:59 +01:00
Anonymous Maarten
f030533580
SDL_blit: remove SDL_BLIT_CPU_FEATURES override
2024-03-23 16:36:44 -07:00
Anonymous Maarten
1aa9ef7213
cpuinfo: reset cpu features on SDL_Quit
2024-03-23 16:36:44 -07:00
Anonymous Maarten
64465653b4
audio: always build fallback scalar converters
2024-03-23 16:36:44 -07:00
Anonymous Maarten
89b135e570
cmake: add automation and platform test without simd
2024-03-23 16:36:44 -07:00
Anonymous Maarten
1d0e5286aa
Limit CPU features through a hint
2024-03-23 16:36:44 -07:00
Anonymous Maarten
e19b6c0b95
Add releaser script + workflow
2024-03-23 21:41:23 +01:00
Anonymous Maarten
c81d11fae4
mingw: add pkg-support files (INSTALL.txt and Makefile)
2024-03-23 21:41:20 +01:00