Anonymous Maarten
749f3ebd14
Fix arguments of SDL_BlitCopyMMX
2023-03-24 02:18:06 +01:00
Anonymous Maarten
c30903882b
cmake+tests: include SDL_build_config.h in select tests + add include paths
2023-03-21 23:03:02 +03:00
Anonymous Maarten
0bd5ce13db
cmake: add underscore in SSE4_1 and SSE4_2 options
2023-03-21 23:03:02 +03:00
Anonymous Maarten
5775d5e112
Add intrinsics test automation
2023-03-21 23:03:02 +03:00
Anonymous Maarten
cb46cbe684
include: include intrinsics headers for RDTSC SSE4.1 and SSE4.2
2023-03-21 23:03:02 +03:00
Anonymous Maarten
905b892314
cmake: simplify mmx/sse/sse2/avx compiler support detection
2023-03-21 23:03:02 +03:00
Anonymous Maarten
6a9e2495f0
docs: add general information on how to build optimized binaries
2023-03-21 23:03:02 +03:00
Anonymous Maarten
b5b9ddb205
SDL_intrin.h: define SDL_<simd>_INTRINSICS in user-visible header
2023-03-21 23:03:02 +03:00
Anonymous Maarten
cd7a3f8af5
cmake: generate and install man pages
2023-03-21 02:19:19 +01:00
Anonymous Maarten
70edd54835
sdlwiki: SDL3 advises users to include through 'SDL3/SDL.h'
2023-03-21 02:19:19 +01:00
Anonymous Maarten
77b8edb5ad
wikiheaders.pl: add --manpath argument
2023-03-21 02:19:19 +01:00
Anonymous Maarten
81ca9d61d6
cmake+test: add more automated tests + use properties
2023-03-21 02:19:19 +01:00
Anonymous Maarten
115460a930
torturethread: sleep a bit in SubThreadFunc to avoid starvation
...
testtorture, built by MinGW from msys2, got blocked indefinitely.
2023-03-21 02:19:19 +01:00
Anonymous Maarten
6a9c692bb9
testsem: don't re-parse positional argument twice
2023-03-21 02:19:19 +01:00
Anonymous Maarten
abfc2a01ca
ci: disable parallel building for ps2
...
The ps2 builds were flaky.
https://github.com/ps2dev/ps2dev/issues/67
2023-03-21 02:19:19 +01:00
Anonymous Maarten
38219e08d9
ci: increase memory size of vmactions workflow
...
By default, the VM gets 1024MiB. https://github.com/vmactions/freebsd-vm/issues/28 suggests to increase it.
2023-03-21 02:19:19 +01:00
Anonymous Maarten
773aad14f8
cmake: Fix building without libsamplerate library
...
On Fedora, the headers for 32-bit and 64-bit are shared.
When building a 32-bit library, CMake found the header (that was installed
for the 64-bit libsamplerate development package). Because no 32-bit libsamplerate
library was installed, linking failed. (SDL_LIBSAMPLERATE_DYNAMIC was set to FALSE
because CMake could not find a library)
2023-03-20 05:34:41 +01:00
Anonymous Maarten
4a6528e3f0
testprograms: parse arguments using SDLTest_CommonState
2023-03-17 17:54:16 +01:00
Anonymous Maarten
8bea41f737
testthread: parse arguments using SDLTest_CommonState + add arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
64b739bc1e
testlock: parse arguments using SDLTest_CommonState + extra arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
4d86a83fa9
testver: don't allow any arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
0268881e30
testspriteminimal: don't allow any arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
08d5235da0
testintersections: check integer argument + no global done + get final tick before SDL shutdown
2023-03-17 17:54:16 +01:00
Anonymous Maarten
6e2851878f
testhittesting: use SDLTest_Common for creating window(s) and renderer(s)
2023-03-17 17:54:16 +01:00
Anonymous Maarten
75da730a88
testfile: fix reference values
2023-03-17 17:54:16 +01:00
Anonymous Maarten
ee13b74d59
testyuv: fix buffer overflow write
2023-03-17 17:54:16 +01:00
Anonymous Maarten
774e51627e
SDL_test: fix infinite loop when passing invalid argument
2023-03-17 17:54:16 +01:00
Anonymous Maarten
c52ad54b05
SDL_test: don't parse audio/video arguments when its subsystem is not enabled
2023-03-17 17:54:16 +01:00
Anonymous Maarten
c8d4ca35ad
SDL_test: always print common log usage, even without audio/video backend
2023-03-17 17:54:16 +01:00
Anonymous Maarten
08c85ebae0
SDL_test: introduce SDLTest_CommonDestroyState to only destroy SDLTest_CommonState
2023-03-17 17:54:16 +01:00
Anonymous Maarten
5109e19935
SDL_test: remove unused BuildCommonUsageString
2023-03-17 17:54:16 +01:00
Anonymous Maarten
9451d3079d
dynapi: SDL_DYNAPI_entry must be in version script
...
For SDL dynapi to work, the SDL_DYNAPI_entry symbol must be externally visible.
Adding __attribute__((visibility(default))) would not work
since version scripts override these.
2023-03-17 08:53:14 -07:00
Anonymous Maarten
7ea6ef4076
ci: add workflow for building SDL on ppc64le
2023-03-15 14:54:20 +01:00
Anonymous Maarten
e77132b8aa
ci: only store cache vita reqs when restore-cache didn't find anything
2023-03-15 14:54:20 +01:00
Anonymous Maarten
65178df717
ci: test ARM neon and simd on ci using vita toolchain
2023-03-15 14:54:20 +01:00
Anonymous Maarten
d27db3defa
cmake+video: always use altivec.h header for detection + introduce SDL_ENABLE_ALTIVEC
2023-03-15 14:54:20 +01:00
Anonymous Maarten
684709a5b6
cmake: fix building testautomation without X11 support
2023-03-15 14:54:20 +01:00
Anonymous Maarten
9cb5f0bfc6
video: fix ARM neon and simd
2023-03-15 14:54:20 +01:00
Anonymous Maarten
64e242fd77
cmake: Add test resources to list of files to clean
2023-03-15 14:54:20 +01:00
Anonymous Maarten
ba5b1f2fd2
Fix build with -DX11MODES_DEBUG in CPPFLAGS
2023-03-15 14:54:20 +01:00
Anonymous Maarten
d24ef0213b
SDL_threadprio.c uses SCHED_RR and SCHED_FIFO from sched.h
2023-03-15 14:54:20 +01:00
Anonymous Maarten
3db3424b4e
cmake: Detect powerpc architecture
2023-03-15 14:54:20 +01:00
Anonymous Maarten
fc4085b54e
cmake: Allow build system to disable arm neon intrinsics
2023-03-15 14:54:20 +01:00
Anonymous Maarten
46de6241d7
cmake: Allow build system to disable loongarch intrinsics
2023-03-15 14:54:20 +01:00
Anonymous Maarten
99b8313eb1
add SDL_DISABLE_MMX to SDL_build_config.h.cmake
2023-03-15 14:54:20 +01:00
Anonymous Maarten
4681240241
cmake: Detect AVX + allow build system to disable Intel intrinsics
2023-03-15 14:54:20 +01:00
Anonymous Maarten
683411e96f
cmake: only use precompile headers for C and CXX
2023-03-15 14:38:26 +01:00
Anonymous Maarten
7d55bbc0da
cmake: get_filename_component(EXT) returns extension including leading dot
2023-03-15 14:38:26 +01:00
Anonymous Maarten
c304fbded6
cmake: disable ccache by default
2023-03-09 20:24:03 +01:00
Anonymous Maarten
103fbcfc05
cmake: use compatible interface properties to disallow linking to a different version of SDL
2023-03-03 23:40:57 +01:00
Anonymous Maarten
790612f4f8
cmake: make sdltests_utils static library
2023-03-01 23:41:22 +01:00
Anonymous Maarten
02fede7c8c
cmake: initialize SDL_SHARED and SDL_STATIC from BUILD_SHARED_LIBS
2023-02-28 02:15:39 +01:00
Anonymous Maarten
f2a277414f
raspberry: SDL_DisplayMode's w/h members have been renamed to screen_w/screen_h
...
Found by running the coccinelle script on SDL's source tree.
2023-02-24 06:55:28 -08:00
Anonymous Maarten
f1202fccdc
cmake: create SDL3::SDL3-shared for VC and Xcode devel package
2023-02-20 00:43:53 +01:00
Anonymous Maarten
213fbd01c5
SDL_endian.h: improve doxygen documentation
2023-02-19 10:01:33 -08:00
Anonymous Maarten
549cedfa88
include: add \brief to includes
2023-02-19 10:01:33 -08:00
Anonymous Maarten
0625695898
docs: Fix doxyfile
2023-02-19 10:01:33 -08:00
Anonymous Maarten
efdc92802f
Fix -Wunused-function warning when configuring with -DSDL_X11_XINPUT2=OFF
2023-02-19 09:59:12 -08:00
Anonymous Maarten
0e2866f846
Fix -Wunused-variable warning when configuring with -DSDL_X11_XRANDR=OFF
2023-02-19 09:59:12 -08:00
Anonymous Maarten
cfadb4c106
Fix -Wunused-variable warning when configuring with -DSDL_X11_XSHAPE=OFF
2023-02-19 09:59:12 -08:00
Anonymous Maarten
18f38bef03
Remove include/SDL3/SDL_name.h
2023-02-18 12:33:54 -08:00
Anonymous Maarten
dc138ee3d4
cmake: SDL3-shared target will always be a shared target
2023-02-17 23:42:03 +01:00
Anonymous Maarten
6ae1578691
ci: cache PVR_PSP2 and gl4es4vita
2023-02-17 21:29:22 +01:00
Anonymous Maarten
d3b7308ee7
ci: install pkg-config on Macos runner
2023-02-16 13:59:23 -08:00
Anonymous Maarten
4d8a50912b
cmake: no shared SDL libraries for riscos
2023-02-16 13:59:23 -08:00
Anonymous Maarten
e203046a5c
cmake+ci: build shared and static libraries on ci
2023-02-16 13:59:23 -08:00
Anonymous Maarten
236d26b480
cmake: add -F <SDL3-framework-parent-folder> compile option in CMakeLists.txt
2023-02-13 05:26:57 +01:00
Anonymous Maarten
d0b39890d2
cmake: include_guard() is not needed
2023-02-13 04:55:46 +01:00
Anonymous Maarten
ff82341ce9
cmake: allow find_package from build directory (requires CMake 3.26)
2023-02-09 17:20:28 -08:00
Anonymous Maarten
b8adf90aa3
cmake: check again for unknown documentation commands
2023-02-09 17:20:28 -08:00
Anonymous Maarten
cc0fa00049
cmake: include directories of (generated) dependencies as SYSTEM
2023-02-09 17:20:28 -08:00
Anonymous Maarten
d6fdb842b0
include: add comment documenting the change(s) to SDL_opengl_glext.h
2023-02-04 02:44:10 +01:00
Anonymous Maarten
93fc72a405
opengl: make SDL_opengl_glext.h's include compatible with macos
...
- Mesa defines __gl_glext_h_
- Apple defines __glext_h_
2023-02-03 20:58:05 +01:00
Anonymous Maarten
d8f0715385
Revert "Remove unused SDL_GetCPUName"
...
This reverts commit 4e6ab13d6f .
2023-02-02 00:49:09 +01:00
Anonymous Maarten
78be9eaf38
Revert "Add testcpuinfo.c"
...
This reverts commit 5888b008b1 .
2023-02-02 00:49:09 +01:00
Anonymous Maarten
69aede6c9e
Add missing _ in SDL_EVENT_LOCALECHANGED and SSDL_EVENT_TEXTEDITING_EXT
2023-02-02 00:49:09 +01:00
Anonymous Maarten
08bcee8570
test: don't use wiki urls for documentation comments
...
Also make consistent use of \ as documentation escape character.
2023-02-02 00:49:09 +01:00
Anonymous Maarten
bff449eb24
testcpuinfo.c needs SDL3/SDL_main.h
2023-02-01 23:49:27 +01:00
Anonymous Maarten
5888b008b1
Add testcpuinfo.c
2023-02-01 23:34:37 +01:00
Anonymous Maarten
4e6ab13d6f
Remove unused SDL_GetCPUName
2023-02-01 23:17:15 +01:00
Anonymous Maarten
048df6260c
Remove disabled self test main functions in src/SDL_error.c
2023-02-01 20:14:48 +01:00
Anonymous Maarten
4af93990a9
Remove disabled self test main functions
2023-02-01 20:13:34 +01:00
Anonymous Maarten
e73151f544
ci: don't upload test directory for ps2 workflow separately
2023-02-01 20:04:47 +01:00
Anonymous Maarten
2afee88c81
ci+haiku: ignore return code of sv force-restart
2023-02-01 19:43:11 +01:00
Anonymous Maarten
0a3d038ff7
cmake: fix installed SDL3::SDL3_test + test on ci
2023-01-31 05:29:38 +01:00
Anonymous Maarten
72f40cb1f5
ci: restart VM after installing haiku dependencies
2023-01-31 01:59:21 +01:00
Anonymous Maarten
25b723cc82
cmake: detect Emscripten architecture as emscripten
2023-01-31 01:59:21 +01:00
Anonymous Maarten
53d434fd24
cmake: add CPack support for creating binary archives
2023-01-31 01:59:21 +01:00
Anonymous Maarten
64c97906c9
ci: fail CMake configuration on warning
2023-01-31 01:59:21 +01:00
Anonymous Maarten
23c2c15a70
cmake: capitalize SDL3::Headers target
2023-01-31 01:59:21 +01:00
Anonymous Maarten
d45f0a0566
ci: upload artifacts for main workflow
2023-01-31 01:59:21 +01:00
Anonymous Maarten
32e7921f98
cmake: by default, link tests to SDL3.dll on Windows
2023-01-31 01:59:21 +01:00
Anonymous Maarten
13c294eec3
cmake: add support for creating Apple frameworks with CMake
2023-01-31 01:59:21 +01:00
Anonymous Maarten
93c25e650c
cmake: create SDL3::headers for include path + no exported CMake variables
2023-01-31 01:59:21 +01:00
Anonymous Maarten
5690dfb65b
cmake: don't install Android.mk files for Android
2023-01-31 01:59:21 +01:00
Anonymous Maarten
09e2f83e17
cmake: no more SDL3_* cache variables
2023-01-31 01:59:21 +01:00
Anonymous Maarten
19d162281c
cmake: detect cpu architecture in SDL_DetectCPUArchitecture
...
Stop looking for arch, when one is found
2023-01-31 01:59:21 +01:00
Anonymous Maarten
9cf34908a1
cmake: pass VERSION to project() + don't use SDL_VERSION
2023-01-31 01:59:21 +01:00
Anonymous Maarten
3aa456dead
cmake: remove MSCOS_RPATH related FIXME
...
The Macos CI does not show any warnings, so assume it's fixed
2023-01-31 01:59:21 +01:00
Anonymous Maarten
758c0dd6d8
Rename mouse BUTTON(DOWN|UP) event to BUTTON_(DOWN|UP)
2023-01-29 19:24:48 -08:00