Don't build gst-python if required deps aren't available

This commit is contained in:
Tim-Philipp Müller 2018-06-07 19:25:22 +01:00
parent 13ff7f43ec
commit 3942dc262b

View file

@ -57,7 +57,11 @@ if gst_libav.length() == 0
endif
if get_option('python')
if dependency('pygobject-3.0', required : false).found()
subprojects += ['gst-python']
else
message('WARNING: not building gst-python module, missing pygobject-3.0')
endif
endif
if get_option('bad')