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,16 +320,16 @@ if get_option('gtk4').allowed()
elif gtk_dep.version().version_compare('>=4.10')
gtk4_features += 'gtk_v4_10'
endif
endif
plugins += {
'gtk4': {
'library': 'libgstgtk4',
'examples': ['gtksink'],
'extra-deps': {'gtk4': ['>=4.6']},
'features': gtk4_features,
},
}
plugins += {
'gtk4': {
'library': 'libgstgtk4',
'examples': ['gtksink'],
'extra-deps': {'gtk4': ['>=4.6']},
'features': gtk4_features,
},
}
endif
endif
# Process plugins list