meson: Fix gtk4 plugin build on linux

dmabuf feature needs the wayland feature too.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1604>
This commit is contained in:
Nirbheek Chauhan 2024-06-06 16:35:18 +05:30 committed by GStreamer Marge Bot
parent 3e4330686f
commit 7f16fd7736

View file

@ -283,7 +283,8 @@ if get_option('gtk4').allowed()
gst_allocators_dep = dependency('gstreamer-allocators-1.0', version: '>=1.24', required: false) gst_allocators_dep = dependency('gstreamer-allocators-1.0', version: '>=1.24', required: false)
gtk_dep = dependency('gtk4', version: '>=4.6', required: get_option('gtk4')) gtk_dep = dependency('gtk4', version: '>=4.6', required: get_option('gtk4'))
if gtk_dep.found() if gtk_dep.found()
if host_system == 'linux' and gtk_dep.version().version_compare('>=4.14') and gst_allocators_dep.found() if host_system == 'linux' and gtk_dep.version().version_compare('>=4.14') and \
gst_allocators_dep.found() and 'wayland' in gtk4_features
gtk4_features += 'dmabuf' gtk4_features += 'dmabuf'
endif endif