Anonymous Maarten
e631fdfbd2
gdk: show dialog when xgameruntime.dll is not installed
2024-08-05 09:18:21 +00:00
Anonymous Maarten
7dfb9acb71
VisualC: add testdialog project
2024-08-05 00:07:15 +02:00
Anonymous Maarten
90757fba5d
Remove bscmake reference
...
Although BSCMAKE is still installed with Visual Studio,
it is no longer used by the IDE.
Since Visual Studio 2008, browse and symbol information is stored
automatically in a SQL Server .sdf file in the solution folder.
2024-08-04 22:16:25 +02:00
Anonymous Maarten
4b3a80bb73
msbuild: add TreatWarningAsError property, and enable it on ci
2024-08-04 21:23:25 +02:00
Anonymous Maarten
31b3f5ea79
ci: add GDK
2024-08-04 13:07:32 +00:00
Anonymous Maarten
f57c597c60
Added SDL_GetWindowFromEvent
2024-08-03 02:37:11 +00:00
Anonymous Maarten
68fb07787b
cmake: Remove HAVE_D3D12_H from sources and introduce SDL_RENDER_D3D(11|12)
2024-08-01 17:49:02 +00:00
Anonymous Maarten
0c5bb532c3
Remove support for building a SDL3 library from gradle
2024-08-01 17:48:49 +00:00
Anonymous Maarten
349540f73f
Document the new SDL3 Android archive artifact
2024-08-01 17:48:49 +00:00
Anonymous Maarten
a1c6f99877
android: add script in Android archive to create a SDK
...
Also,
- Move mingw's pkg-support into build-scripts
- Add type annotations to python scripts for mypy
- ci: use v4 tag of actions/cache
- cmake: use PYTHON3_EXECUTABLE for running xxd.py
(Python3::Interpreter is not always recognized.)
2024-08-01 05:07:08 +02:00
Anonymous Maarten
b68ac011e0
ctest: fail if there are outstanding allocations
2024-07-30 20:56:19 +00:00
Anonymous Maarten
c7a1876536
SDL_test: use mutex based on SDL_AtomicInt in memory tracking
...
SDL_Mutex or SDL_SpinLock cannot be used as these use SDL_malloc internally.
ff
2024-07-30 20:56:19 +00:00
Anonymous Maarten
4c00433b69
SDL_test: format tracked allocation names during report generation
2024-07-30 20:56:19 +00:00
Anonymous Maarten
bc8f4a1d0b
ci: fix artifacts on libsdl-org repo
2024-07-30 22:55:36 +02:00
Anonymous Maarten
1ef3263ad4
ci: only upload artifacts in libsdl-org GitHub organization
2024-07-30 22:53:14 +02:00
Anonymous Maarten
446c05a001
ci: update actions descriptions + fix loongarch64 action
...
[sdl-ci-filter *loongarch64*]
2024-07-29 13:53:27 +02:00
Anonymous Maarten
44f1f81d6c
ci: add vita job
2024-07-28 03:12:51 +02:00
Anonymous Maarten
12eb1f1497
ci: limit jobs by using sdl-ci-filter
...
[sdl-ci-filter msvc-*]
2024-07-27 15:19:20 +00:00
Anonymous Maarten
eae6758abe
ci: build haiku as canary
2024-07-27 15:19:20 +00:00
Anonymous Maarten
da8aa84c1d
ci: merge all workflows into one
2024-07-27 15:19:20 +00:00
Anonymous Maarten
3374e57102
stdinc: strcasecmp is declared in strings.h
2024-07-27 15:19:20 +00:00
Anonymous Maarten
76f60c4b66
riscos: fix -Wunused-variable
2024-07-27 15:19:20 +00:00
Anonymous Maarten
3bfc103e76
tests: start memory tracking first + clean up cached text textures
2024-07-27 13:44:04 +02:00
Anonymous Maarten
6f1136c6ce
testgles2: fix leaks
2024-07-27 13:06:54 +02:00
Anonymous Maarten
8a5d1fc196
cmake: add swift test
2024-07-27 08:39:55 +02:00
Anonymous Maarten
37881b3150
cmake: use genex to link with Apple Frameworks
2024-07-27 08:37:21 +02:00
Anonymous Maarten
2aad26abb0
cmake: gate all preseeding behind SDL_PRESEED option
2024-07-25 16:42:11 +00:00
Anonymous Maarten
9826f73230
cmake: fix copying of resource files on uwp
2024-07-25 16:01:57 +02:00
Anonymous Maarten
9f9ebcd40a
cmake: fix copying of example resource files on desktop, ps2 and psp
2024-07-25 14:54:20 +02:00
Anonymous Maarten
22bfbdbc02
stdinc: c23 deprecated _Static_assert in favor of static_assert
2024-07-21 21:51:55 +03:00
Anonymous Maarten
6d39c18dd3
ci: test the MSVC development archive for targeting arm64ec
2024-07-20 00:59:58 +02:00
Anonymous Maarten
476b987f1b
intrinsics: avx, avx2 and avx512f are (currently) unsupported on arm64ec
2024-07-20 00:59:58 +02:00
Anonymous Maarten
b3b74e8aed
Fix SDL3ConfigVersion.cmake of VC development package for ARM64EC
2024-07-20 00:59:58 +02:00
Anonymous Maarten
cc47969a79
cmake: actually check ARM64EC
2024-07-19 22:24:44 +02:00
Anonymous Maarten
f8c1cd6622
ci: build MSVC workflows using Ninja generator
2024-07-19 10:21:34 +00:00
Anonymous Maarten
a2a1d2de66
Add HAVE_UNSETENV to preprocessor guard
2024-07-19 10:21:34 +00:00
Anonymous Maarten
2d1d3d9fb2
cmake: fix building UWP with non-MSVC generator
2024-07-19 10:21:34 +00:00
Anonymous Maarten
ccebbb6c6e
Fix UWP build in non-UNICODE mode
2024-07-19 10:21:34 +00:00
Anonymous Maarten
c59771d7fc
cmake: detect ARM64EC
2024-07-19 10:21:34 +00:00
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