Anonymous Maarten
354a35c1d7
cmake: port back Apple changes from SDL3
2024-08-14 10:35:43 +00:00
Charles Cross
e306cbcbee
Updates CheckLibUDev() to match main, fixing missing HAVE_LIBUDEV
2024-07-29 07:21:14 -07:00
Anonymous Maarten
50a6a39dd6
cmake: use genexes for linking against apple frameworks
2024-07-27 17:13:52 +02:00
Cameron Cawley
65d8c07c7d
Allow building the Raspberry Pi video driver with standard EGL headers
2024-05-27 12:30:58 -07:00
Anonymous Maarten
3184936950
cmake: we only need a C++ compiler for Android, Haiku and UWP
2024-03-11 01:26:13 +01:00
Wohlstand
f9baa30270
sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work
...
#6778
2023-11-08 02:57:04 -08:00
Anonymous Maarten
933ec9e978
cmake: add qnx support
...
Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:48:51 +02:00
Anonymous Maarten
fcae9cd210
cmake: build with -Wdocumentation
2023-08-09 02:53:48 +02:00
Ryan C. Gordon
3aba9d4473
pulseaudio: We should be using libpulse, not libpulse-simple.
...
This probably worked by a quirk of the dynamic loader...?
(cherry picked from commit 6aef14fb2d
)
2023-07-12 16:43:05 -04:00
Ozkan Sezer
29d461b628
need pulseaudio >=0.9.15. call pa_threaded_mainloop_set_name only if available.
2023-07-12 21:39:41 +03:00
Anonymous Maarten
1c6a649362
cmake: check whether SONAME actualy exists
...
//Have include libunwind.h
2023-07-05 00:25:24 +02:00
Anonymous Maarten
0262f757e1
cmake: check whether libunwind can be compiled and linked against
2023-07-05 00:25:24 +02:00
Ozkan Sezer
634705851d
cmake: really fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:56:10 +03:00
Ozkan Sezer
1194f52a5c
cmake: fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:55:40 +03:00
Frank Praznik
ea179abdb7
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.
(cherry picked from commit 423a82cd4b
)
2023-01-22 08:20:34 -08:00
Ozkan Sezer
d09d0aaab6
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:50 +03:00
nfarid
b79732b967
cmake: use FindALSA.cmake to find ALSA library
2022-12-11 23:23:45 +01:00
Anonymous Maarten
660cec69b1
cmake: find libudev library so it gets priority
2022-11-25 21:37:42 +01:00
Anonymous Maarten
e426617c9c
cmake: add X11 include dir to check dirs
2022-11-24 21:00:26 +01: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
Anonymous Maarten
17b329d199
cmake: enable disabing hidapi
2022-08-05 13:06:51 -07:00
Anonymous Maarten
a4e6f3ca9d
cmake: when there are alternatives, don't use libusb by default
2022-08-05 13:06:51 -07:00
Anonymous Maarten
e5698d1394
cmake: allow cmake re-configuration after installation of x11 library
...
check_include_path is not meant to be used to check for presence of a
library. This is because a BOOL is cached.
Avoid this caching by using find_file.
`find_file` caches a patch instead of a bool and will always run when
the result failed.
2022-07-21 18:38:12 +02:00
Anonymous Maarten
9ad3711a6b
cmake: only enable x11_xss/x11_xrandr/x11_xfixes when its lib is available
2022-07-21 15:19:19 +02:00
Anonymous Maarten
aa7a6c0ea6
cmake: only enable x11_xcursor and x11_xinput when its library is available
2022-07-21 14:38:57 +02:00
Anonymous Maarten
fa39f73552
cmake: add generated files to a custom target ( #5851 )
...
This way, headers are only generated once .
2022-06-26 23:34:30 +02:00
Anonymous Maarten
6dcb2868b0
cmake: avoid use of possible non-available XEXT_LIB
2022-06-23 14:17:38 +02:00
Anonymous Maarten
b19099d557
cmake: use find_package(SampleRate) to find samplerate + allow targets
2022-06-16 16:47:19 -07:00
Anonymous Maarten
18206446bf
cmake: collect SDL_LIBS as list + export PKG_DIRECTFB_LDFLAGS
2022-06-15 11:11:49 -07:00
Anonymous Maarten
32df5aeb3d
Check result of FindLibraryAndSONAME before use
2022-06-15 05:33:40 +03:00
Anonymous Maarten
afc350eeff
cmake: do 's#set(SOURCE_FILES #list(APPEND SOURCE_FILES #g'
2022-06-15 05:33:40 +03:00
Anonymous Maarten
e99a7144ff
Use list(APPEND EXTRA_LIBS) everywhere
2022-06-13 10:05:30 -07:00
ShuangLiu1992
f4fc4719a5
fix CheckCOCOA on modern CMake
...
Modern CMake doesn't need "LANGUAGE C" for Objective-C
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C) should be removed fro video/cocoa/*.m as well otherwise project won't compile
see also d3cc5764c0
2022-05-21 09:53:50 -07:00
Ryan C. Gordon
7d7ec9c951
x11: Remove XVidMode and Xinerama support.
...
Fixes #1782 .
2022-04-26 23:17:13 -04:00
Ethan Lee
13337e17a5
wayland: The rest of the wayland-client 1.18 requirement... Git, please
2022-03-23 13:27:01 -04:00
Joao Paulo Magalhaes
57df1dfce6
Video: do not use hardcoded VIVANTE and VDK libraries
2022-03-23 08:49:29 -07:00
Ozkan Sezer
61a93d3c46
minor whitespace cleanup.
2022-03-15 23:10:02 +03:00
Ryan C. Gordon
3ab739afff
cmake: Make test code use proper C main functions.
...
Fixes #5021 .
2022-03-13 12:10:52 -04:00