meson: Update to waylandegl feature

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2166>
This commit is contained in:
Doug Nazar 2025-04-01 14:56:50 -04:00 committed by GStreamer Marge Bot
parent ade1369db0
commit a12b4e200c

View file

@ -286,7 +286,7 @@ if get_option('gtk4').allowed()
gl_winsys = gstgl_dep.get_variable('gl_winsys').split()
gl_platforms = gstgl_dep.get_variable('gl_platforms').split()
if 'wayland' in gl_winsys
gtk4_features += 'wayland'
gtk4_features += 'waylandegl'
endif
if 'x11' in gl_winsys
if 'egl' in gl_platforms
@ -305,7 +305,7 @@ if get_option('gtk4').allowed()
gtk_dep = dependency('gtk4', version: '>=4.6', required: get_option('gtk4'))
if gtk_dep.found()
if host_system == 'linux' and gtk_dep.version().version_compare('>=4.14') and \
gst_allocators_dep.found() and 'wayland' in gtk4_features
gst_allocators_dep.found() and 'waylandegl' in gtk4_features
gtk4_features += 'dmabuf'
endif