Skip gst-devtools if json-glib-1.0 is missing
authorTim-Philipp Müller <tim@centricular.com>
Thu, 27 Oct 2016 19:07:25 +0000 (20:07 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 27 Oct 2016 19:11:45 +0000 (20:11 +0100)
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.

meson.build

index 861ef7d..fa043ca 100644 (file)
@@ -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')