meson: Only enable the gtk4 plugin when deps are found

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1604>
This commit is contained in:
Nirbheek Chauhan 2024-06-06 15:15:06 +05:30 committed by GStreamer Marge Bot
parent 968e0fddb9
commit 3b6832724f

View file

@ -320,7 +320,6 @@ if get_option('gtk4').allowed()
elif gtk_dep.version().version_compare('>=4.10') elif gtk_dep.version().version_compare('>=4.10')
gtk4_features += 'gtk_v4_10' gtk4_features += 'gtk_v4_10'
endif endif
endif
plugins += { plugins += {
'gtk4': { 'gtk4': {
@ -331,6 +330,7 @@ if get_option('gtk4').allowed()
}, },
} }
endif endif
endif
# Process plugins list # Process plugins list