Elad Lahav
bc9e0bb7ad
Switch from EXTRA_LIBS to SDL_EXTRA_LIBS
2023-03-27 15:33:08 -07:00
Elad Lahav
4374645738
Add QNX video and audio modules
2023-03-27 15:33:08 -07:00
Elad Lahav
b47eeb8488
Add QNX as a platform to the cmake build files
2023-03-27 15:33:08 -07: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
Ozkan Sezer
272010b612
cmake: really fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:56:10 +03:00
Ozkan Sezer
f7f61af12b
cmake: fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:55:40 +03:00
Anonymous Maarten
cc0fa00049
cmake: include directories of (generated) dependencies as SYSTEM
2023-02-09 17:20:28 -08:00
Anonymous Maarten
bb3a60bce5
cmake: move include(sdlfind.cmake) to main cmake script
2023-01-25 00:23:05 +01:00
Frank Praznik
423a82cd4b
wayland: Enforce or override libdecor minimum window size
...
libdecor plugins can change the min/max window size values internally to enforce a minimum window size, and errors and crashes can result if the window size is below the internal limit.
On versions of libdecor >= 0.1.1, the minimum width and height can be queried and the minimum required window size will be enforced. The application requested window size is still respected, however, the actual window may be slightly larger than the drawable area to accommodate the required libdecor minimum size.
On version 0.1.0 of libdecor, which lacks the function to retrieve the minimum size, the internal limits are overridden before committing a frame, so that the internal limits always match the window size as a workaround, even if the window is technically smaller than the plugin would normally allow.
2023-01-18 10:28:01 -08:00
Sam Lantinga
8238a128c3
Fixed build on Steam Link hardware
2023-01-13 16:37:56 -08:00
Sam Lantinga
bf53183c8b
Fixed building on Raspberry Pi
2023-01-13 14:20:57 -08:00
Anonymous Maarten
a3ae26ddd0
cmake: convert spaces in PTHREAD_CFLAGS to ';'
2023-01-13 19:02:54 +01:00
Anonymous Maarten
3d67b8d026
cmake: convert spaces in USB_CFLAGS to ';'
2023-01-13 18:40:49 +01:00
Sam Lantinga
7c16fe6d69
Default to use the built-in EGL definitions
2023-01-12 16:17:00 -08:00
Ozkan Sezer
0d8c22acd2
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:37 +03:00
Anonymous Maarten
e85e11b211
cmake: avoid adding full path to SDL_EXTRA_LIBS
...
This avoids placing e.g. -l/path/to/libX11.so in sdl3.pc when configuring with -DSDL_X11_SHARED=OFF
2023-01-08 15:57:51 +01:00
Anonymous Maarten
77025417dd
cmake: add SDL_ prefix to EXTRA_LIBS/EXTRA_LDFLAGS
2023-01-08 15:57:51 +01:00
Anonymous Maarten
053c37583c
cmake: avoid modifying CMAKE_C_FLAGS
2023-01-08 15:57:51 +01:00
Anonymous Maarten
0a4420e02f
cmake: rename cmake variables to include _PC_ as they are meant for pkgconfig file
2023-01-08 15:57:51 +01:00
Anonymous Maarten
373a6464c8
cmake: collect cflags in sdl-build-options and sdl-global-options
2023-01-08 15:57:51 +01:00
avafinger
12e0e6d130
SDL3 with Hardware Acceleration for ROCKCHIP platform (mali blob)
2022-12-26 08:50:51 -08:00
Anonymous Maarten
8f9227e4be
cmake: use CMakePushCheckState to handle check states
2022-12-19 09:19:45 -08:00
Anonymous Maarten
9eb4d1f020
cmake: use FindALSA.cmake to find ALSA libraries
...
Co-authored-by: nfarid <54642193+nfarid@users.noreply.github.com>
2022-12-12 01:37:01 +01:00
Ozkan Sezer
bb8adf74e0
cmake/sdlchecks.cmake: make it diff smaller against SDL2
2022-12-02 03:01:02 +03:00
Sam Lantinga
1e2dfdb019
Removed the OpenGL ES 1.0 2D render implementation
...
In SDL3 we plan to make more use of shaders in the 2D render API, and this minimizes the number of platforms we have to consider for new features. OpenGL ES 2.0 or newer is supported on all modern iOS and Android devices.
2022-11-30 13:39:37 -08:00
Sam Lantinga
63f307fe1f
Remove SDL_config.h from the public headers
...
The SDL headers are no longer dependent on the build configuration.
Fixes https://github.com/libsdl-org/SDL/issues/6643 and https://github.com/libsdl-org/SDL/issues/6641
2022-11-26 04:48:36 -08:00
Anonymous Maarten
d0e14008b5
cmake: find libudev library so it gets priority
2022-11-25 21:36:53 +01:00
Anonymous Maarten
cd13600944
cmake: don't reset check state after pushing state
2022-11-24 23:33:54 +01:00
Anonymous Maarten
622f64dff2
cmake: add X11 include dir to check dirs
2022-11-24 20:59:02 +01:00
Ozkan Sezer
34231f5ba0
reverted opengles removal.
2022-11-23 18:50:02 +03:00
Ozkan Sezer
016b757311
reverted jack audio backend removal.
2022-11-23 06:50:20 +03:00
Ozkan Sezer
7df102d220
reverted sndio backend removal.
2022-11-22 22:04:10 +03:00
Ozkan Sezer
30b1ab2add
removed opengles.
2022-11-22 21:48:40 +03:00
Ozkan Sezer
3aea865cdf
removed directfb support.
2022-11-22 20:45:45 +03:00
Ozkan Sezer
cdb54ad21e
removed arts, esd, fusionsound, nas, paudio, sndio, sunaudio, winmm audio backends.
2022-11-22 19:51:56 +03:00
Ozkan Sezer
8d6fda4810
removed os2 support & support for building SDL with watcom.
2022-11-22 19:18:47 +03:00
Sam Lantinga
2c4159b99a
First pass at changing SDL 2.0 to SDL 3.0
2022-11-21 20:28:58 -08:00
Brad Smith
f37db957f8
Use -lpthread on OpenBSD
2022-10-21 16:53:26 -07:00
Anonymous Maarten
0823b5973a
cmake: fix finding wayland-libdecor
...
It was broken in 11d53c84a7
2022-10-21 15:31:43 +02:00
Anonymous Maarten
11d53c84a7
cmake: use pkg-config's library dirs as hint for finding a shared library
2022-10-20 19:01:28 +02:00
Brad Smith
f4e3af15a1
Simplify OSS test by removing OpenBSD specific location of the soundcard.h header
...
OpenBSD has long since stopped using OSS. Remove checking for OpenBSD specific header.
2022-10-17 07:18:47 -07:00
Brad Smith
5ec1cef6b5
Further fixes for the sndio CMake detection
2022-10-07 11:55:00 +03:00
Brad Smith
f48823181b
Use the pkg-config file when checking for sndio.
2022-10-06 19:09:10 -07:00
Anonymous Maarten
81d3266766
cmake: make sure check_* uses 2 different variables in CheckX11
2022-09-27 03:47:20 +03:00
Anonymous Maarten
a9524ffa9d
cmake: make sure check_c_source_compiles uses 2 different variables in CheckOSS
2022-09-27 03:47:20 +03:00
Anonymous Maarten
bfecd78159
cmake: use check_symbol_exists to check dlopen + need for dl library
2022-09-27 03:47:20 +03:00
Anonymous Maarten
6dfd7a17e1
cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB
2022-09-10 15:53:11 +02:00
Anonymous Maarten
c3495ec6ea
Fix value of SDL_HIDAPI_DISABLED
2022-09-10 14:11:19 +02:00
Anonymous Maarten
19b13aab98
cmake: mark hidapi as disabled when not found
2022-09-10 13:41:29 +02:00
Sam Lantinga
3f89d1704d
Fixed building with libusb not dynamicaly loaded
2022-09-01 11:30:02 -07:00