SDL/src
Simon McVittie d5bbbd3f73 Avoid depending on libwayland 1.20 unnecessarily
When using shared linking (linking in the normal way with
-lwayland-client) rather than loading Wayland libraries dynamically at
runtime, listing symbols that don't exist in the current version results
in a build failure. We don't actually call wl_proxy_marshal_flags() or
wl_proxy_marshal_array_flags() directly; the reason we need them is
that they're called by the code generated by wayland-scanner >= 1.20.

If we're building against an older Wayland library, then we'll have its
corresponding version of wayland-scanner (mismatched versions are not
supported), so we won't need those two symbols, and can avoid generating
a dependency on them.

Conversely, if we're building against a newer Wayland library, the
generated code will call them unconditionally, so we cannot treat them as
optional and gracefully fall back: that would result in a crash. Instead,
treat them as a mandatory part of the Wayland library, so that if they
are not found at runtime, we can fall back to X11 without crashing.

libwayland 1.18 is in several LTS distributions (Ubuntu 20.04,
Debian 11, RHEL 8) so avoiding a hard dependency on 1.20 is quite
useful.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Resolves: https://github.com/libsdl-org/SDL/issues/5376
2022-03-24 14:46:48 -04:00
..
atomic move bug #5333 fix to headers 2022-02-08 21:32:50 +03:00
audio static analysis: Fixed several complaints from codechecker. 2022-03-24 11:00:43 -04:00
core Workaround for bug in Microsoft WGI support 2022-03-17 17:10:40 -07:00
cpuinfo Updated copyright for 2022 2022-01-03 09:40:21 -08:00
dynapi Add SDL_RenderGetWindow() API to get the window associated with a renderer (#5440) 2022-03-23 17:07:56 +01:00
events static analysis: Fixed several complaints from codechecker. 2022-03-24 11:00:43 -04:00
file allow MacOS build without SDL_FILE 2022-01-28 20:40:19 -05:00
filesystem SDL_GetBasePath() fixes for OS/2 2022-03-17 03:50:02 +03:00
haptic re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory 2022-01-28 20:40:19 -05:00
hidapi static analysis: Fixed several complaints from codechecker. 2022-03-24 11:00:43 -04:00
joystick add some Thrustmaster wheels 2022-03-24 08:33:37 -07:00
libm Updated copyright for 2022 2022-01-03 09:40:21 -08:00
loadso use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError 2022-01-28 20:40:19 -05:00
locale Updated copyright for 2022 2022-01-03 09:40:21 -08:00
main Updated to version 2.0.21 for development 2022-01-17 15:32:27 -08:00
misc minor update to winrt/SDL_sysurl.cpp 2022-02-04 20:03:50 +03:00
power Don't fail to get battery status if the upower refresh call fails 2022-02-04 14:02:44 -08:00
render static analysis: Fixed several complaints from codechecker. 2022-03-24 11:00:43 -04:00
sensor Removed problematic call to ISensor_SetEventSink() 2022-03-17 10:01:13 -07:00
stdlib stdlib: just cast iconv()'s 2nd arg to void *. 2022-03-22 16:14:06 -04:00
test Updated copyright for 2022 2022-01-03 09:40:21 -08:00
thread pthread/SDL_systhread.c: always include errno.h 2022-02-05 08:56:56 +03:00
timer timer: Fix Emscripten declaration-after-statement error 2022-01-22 12:27:54 +00:00
video Avoid depending on libwayland 1.20 unnecessarily 2022-03-24 14:46:48 -04:00
SDL.c static analysis: Fixed several complaints from codechecker. 2022-03-24 11:00:43 -04:00
SDL_assert.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_assert_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hints.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hints_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_internal.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_log.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00