From 01ad705bf6e64e09bc1f1cad041327daee2f627c Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 6 Jun 2024 15:15:06 +0530 Subject: [PATCH] meson: Only enable the gtk4 plugin when deps are found Part-of: --- meson.build | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index c11c860e..355b7242 100644 --- a/meson.build +++ b/meson.build @@ -316,16 +316,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