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.
This commit is contained in:
Tim-Philipp Müller 2016-10-27 20:07:25 +01:00
parent 0b560fb187
commit 33e0791294

View 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')