summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-10-29 13:07:34 -0500
committerDudemanguy <random342@airmail.cc>2022-10-29 20:41:20 +0000
commitf5944824513f3081ac01484c85960324bdaabda1 (patch)
tree56f75868bc5eb2b0c0b546093ef2cf7d21a7ef10 /wscript
parenta9e1905a4a2ee9d925c48cb382132dbc10820233 (diff)
downloadmpv-f5944824513f3081ac01484c85960324bdaabda1.tar.bz2
mpv-f5944824513f3081ac01484c85960324bdaabda1.tar.xz
build: add an additional check for wayland-protocols 1.24
666cb91cf12a4f8b42087530104513b0fc4ba16d added support for v4 of the dmabuf protocol. This was meant to be optional and the fallback support for the old v2 (dates back to 2017[0] well before the 1.15 wayland-protocol version we depend on) was maintained. However, v4 added several new functions and structs that of course aren't defined in old protocol versions so naturally this breaks the build on those systems. Since this is just a niche feature and not really critical to overall wayland support in mpv, just give in and add another check in the build system and #if out the newer stuff in wayland_common. v4 of linux-dmabuf depends on wayland protocols 1-24[1], so go ahead and make that our new check. Fixes #10807. [0]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/commit/a840b3634ad637b237f238d2efb9ab8f4712d5f4 [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/commit/8a5cd28a0e84911a5339855cb32ed63fb57ea40a
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index 028b3f28ec..e349d4103e 100644
--- a/wscript
+++ b/wscript
@@ -531,6 +531,11 @@ video_output_features = [
'wayland-cursor', '>= 1.15.0',
'xkbcommon', '>= 0.3.0'),
} , {
+ 'name': 'wayland-protocols-1-24',
+ 'desc': 'wayland-protocols version 1.24+',
+ 'deps': 'wayland',
+ 'func': check_pkg_config('wayland-protocols >= 1.24'),
+ } , {
'name': 'memfd_create',
'desc': "Linux's memfd_create()",
'deps': 'wayland',