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')
gtk4_features += 'gtk_v4_10'
endif
endif
plugins += {
'gtk4': {
@ -330,6 +329,7 @@ if get_option('gtk4').allowed()
'features': gtk4_features,
},
}
endif
endif
# Process plugins list