summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-10-27 20:07:25 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-10-27 20:11:45 +0100
commit33e079129461f171d7fb7e4dfc5586017e1bd3e6 (patch)
treee9321f0ab207961a61eb808f13916ad9fbe99df2
parent0b560fb18753f6a41057e6ce8755eef99678322e (diff)
Skip gst-devtools if json-glib-1.0 is missing
We shouldn't fail hard because of a gst-devtools dependency, so if json-glib-1.0 is not found, just skip the module and build the rest.
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 861ef7d..fa043ca 100644
--- a/meson.build
+++ b/meson.build
@@ -48,7 +48,11 @@ if not get_option('disable_gst_libav')
endif
if not get_option('disable_gst_devtools')
+ if dependency('json-glib-1.0', required : false).found()
subprojects += ['gst-devtools']
+ else
+ message('WARNING: not building gst-devtools module, missing glib-json-1.0')
+ endif
endif
if not get_option('disable_gst_editing_services')