Sam Lantinga
aca9bd02bf
Make sure DEBUG is defined for debug configurations
2025-09-16 09:12:33 -07:00
Ryan C. Gordon
2ede37f5a3
cmake: Removed unused SDL_GPU_DXVK bits.
...
Reference Issue #13938 .
2025-09-13 11:24:55 -04:00
Ozkan Sezer
5907bf2555
cmake: remove GetDpiForMonitor() assignment from shellscalingapi.h check
...
It always fails, because we don't set the needed link library, i.e. shcore.
Besides, SDL3.dll doesn't link to shcore.dll, it links to it at runtime, so
it is unnecessary to check for that symbol here.
Reference issue: https://github.com/libsdl-org/SDL/pull/13904
2025-09-09 04:55:32 +03:00
nightmareci
2f5bc17ea6
Fix support for Windows XP and up ( #13904 )
2025-09-08 13:00:26 -07:00
Ozkan Sezer
83bb0f9105
cmake: simd detection clean-up for Apple multi-arch configs.
2025-09-02 22:34:10 +03:00
Anonymous Maarten
c0fb71f2a9
cmake: fix SDL_UNINSTALL post-configuration report
2025-09-02 21:29:50 +02:00
Anonymous Maarten
e15e2808f2
cmake: use 'TargetConditionals.h' on Apple for SIMD tests
2025-09-02 21:29:50 +02:00
Anonymous Maarten
1e7d3b51de
cmake: use APPLE in dep_option
...
expands to <nothing> on e.g. Windows, which will be interpreted as true by cmake_dependent_option.
2025-09-02 21:29:50 +02:00
Ozkan Sezer
875653658a
cmake: revert commit 5d1bbd9
and change sse4.2 test
...
clang doesn't support -mcrc32 until version 14.0, therefore drop -mcrc32
use in sse 4.2 test, and change it to check _mm_cmpgt_epi64() instead of
_mm_crc32_u32(). without this, sse4.2 check was failing with clang <= 13
Fixes https://github.com/libsdl-org/SDL/pull/12223
2025-08-31 03:20:20 +03:00
Frank Praznik
1049426a76
wayland: Add a sigtimedwait() implementation for OpenBSD
...
sigtimedwait() is an optional part of POSIX.1-2001, and OpenBSD doesn't implement it. Add a replacement implementation based on https://comp.unix.programmer.narkive.com/rEDH0sPT/sigtimedwait-implementation
2025-08-29 18:32:29 -04:00
Susko3
cd21bbe796
Avoid checking for HAVE_POSIX_SPAWN on Android
...
This makes the CMake build closer to SDL_build_config_android.h
as both will now use SDL_PROCESS_DUMMY.
2025-08-28 04:09:50 -07:00
Ozkan Sezer
98bed62259
cmake: fall back to -Wconversion if -Wfloat-conversion isn't available
...
... during checks for valid isinf/isinff/isnan/isnanf macros.
2025-08-27 22:20:02 +03:00
Anonymous Maarten
0a6b80717c
Record dynamic dependencies in .note.dlopen elf section
2025-08-27 16:11:39 +00:00
Sam Lantinga
da6e9bbf7c
Allow building the tray subsystem without the video subsystem
...
Fixes https://github.com/libsdl-org/SDL/issues/13235
2025-08-27 08:15:24 -07:00
ceski
270737584e
Fix vsync-off support for direct3d11
2025-08-24 21:33:02 +03:00
Joshua T. Fisher
f053be22be
Improve CMake for IDE Projects (Visual Studio) ( #13704 )
2025-08-14 08:19:14 -07:00
ChaseKnowlden
10478c59db
Keep MSVC Flags Consistent across CMake runs
2025-08-12 19:39:02 -07:00
Sam Lantinga
6981522cd6
Revert "Support Google Play 16 KB Page Size Requirement ( #13470 )"
...
This reverts commit dc2c83c383
If you need to support the Google Play 16 kiB page size requirement, the recommendation is to use NDK r28c or newer, which automatically aligns binaries correctly.
2025-08-07 11:44:45 -07:00
Ozkan Sezer
f241e8e8fd
windows: replace shobjidl_core.h usage with shobjidl.h except for when targeting xbox
...
Closes https://github.com/libsdl-org/SDL/pull/13571
2025-08-01 17:11:49 -07:00
Anonymous Maarten
06cafa3040
cmake: explicitly disable UNITY_BUILD property for SDL3 libraries
2025-08-01 01:59:18 +02:00
Matthew Zavislak
dc2c83c383
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)
2025-07-31 16:12:54 -07:00
Anonymous Maarten
cfb8e591cb
cmake: remove /RTC1 from CXX flags when building with SDL_LIBC=OFF
2025-07-11 03:25:58 +02:00
Ozkan Sezer
fb0e03f262
fix ARM64 linkage with Visual Studio >= 17.14 when SDL_LIBC is disabled
...
Reference issue: https://github.com/libsdl-org/SDL/issues/13254
(cherry picked from commit 2fb6abb9ad
)
2025-07-09 01:30:55 +03:00
Anonymous Maarten
89eef1bd34
cmake: Android always needs a native HIDAPI implementation
2025-06-26 22:34:30 +00:00
Michael Fitzmayer
7ae64592c9
Restore support for the Nokia N-Gage ( #12148 )
2025-05-22 11:07:22 -07:00
GamesTrap
3f2226a917
Add progress bar support for Linux
2025-05-10 07:53:36 -07:00
Sam Lantinga
ef54c3bf18
Always enable D3D12 GPU on Windows
...
This isn't dependent on the render subsystem
Fixes https://github.com/libsdl-org/SDL/issues/12922
2025-04-29 08:51:26 -07:00
Anonymous Maarten
5b1e92ae88
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)
2025-04-25 07:58:16 -07:00
Sam Lantinga
8a57c83ff9
Updated to GameInput v1.1
...
The biggest change is that the C API is no longer available.
Here are more details:
https://www.nuget.org/packages/Microsoft.GameInput
Fixes https://github.com/libsdl-org/SDL/issues/12802
2025-04-11 13:42:58 -07:00
Cameron Cawley
b0860fb0c2
Disable EGL in Emscripten builds
2025-04-09 12:37:03 -07:00
Anonymous Maarten
87d6beb895
Rename cmake/sdltargets.cmake -> cmake/sdlcommands.cmake
2025-04-02 23:55:29 +02:00
Andrei Tsurkan
f7a89d19c6
fix missing AVFoundation in CMakeLists.txt
2025-03-29 08:44:51 -07:00
Sam Lantinga
0f27c3aabd
Added SDL_PROP_PROCESS_CREATE_WORKING_DIRECTORY_STRING
...
Fixes https://github.com/libsdl-org/SDL/issues/12654
2025-03-27 11:30:00 -07:00
Rémy Tassoux
7a10fcdccc
Add progress bar support for Windows ( #12530 )
2025-03-22 08:04:10 -07:00
Sam Lantinga
794ff283e2
Added support for using XTest to warp the mouse
2025-03-05 13:23:02 -08:00
Sam Lantinga
b0df1cbbef
Updated to version 3.3.0 for development
2025-03-01 19:31:00 -08:00
Sam Lantinga
292e431748
Updated to version 3.2.6 for release
2025-03-01 18:30:34 -08: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
9784414ddd
cmake: build SDL_uclibc with -fPIC
2025-02-20 20:28:54 +01:00
rubisetcie
9bd6d36471
Added SDL_DEPS_SHARED option to control default dynamic loading of shared libraries ( #12215 )
2025-02-10 07:40:24 -08:00
Michael Savage
5d1bbd9b27
Fix SSE 4.2 test
...
When building with zig cc I get:
```
error: always_inline function '_mm_crc32_u32' requires target feature 'crc32', but would be inlined into function 'calc_crc32c' that is compiled without support for 'crc32'
5 | crc32c = (unsigned)_mm_crc32_u32(crc32c, *(unsigned*)text);
| ^
1 error generated.
```
This PR adds -mcrc32, another option would be to use a different SSE4.2 op
2025-02-08 07:37:14 -08:00
ds-sloth
7c12c63f63
Add generic SDL_syscond to N3DS threads source list
2025-02-06 18:02:03 -08:00
Sam Lantinga
982094c85c
Updated to version 3.2.5 for development
2025-02-06 16:40:59 -08:00
Sam Lantinga
b5c3eab6b4
Updated to version 3.2.4 for release
2025-02-06 16:03:43 -08:00
Quan Zhuo
c9341489cc
Fix #12197 : Force set /utf-8 for msvc compilers ( #12198 )
...
The MSVC compiler determines the encoding of the source code based on
the BOM of the source code when reading it. If there is no BOM, it
defaults to the local encoding, which is gb2312, codepage 936, on
Simplified Chinese Windows. This can cause errors such as newline
characters in strings.
2025-02-06 09:34:41 -08:00
Sam Lantinga
be991239d9
Updated to version 3.2.3 for development
2025-02-01 17:43:38 -08:00
Sam Lantinga
2fa1e7258a
Updated to version 3.2.2 for release
2025-02-01 17:01:45 -08:00
Sam Lantinga
77b520e93e
Updated to version 3.2.1 for development
2025-01-21 14:02:06 -08:00
Sam Lantinga
a52fc209bb
Updated to version 3.2.0 for release
2025-01-21 08:52:28 -08:00
Anonymous Maarten
3e530c6db1
cmake: remove superfluous cmake_minimum_required
2025-01-21 03:10:42 +01:00