From 3942dc262badcfeab9ad78389d6a49832f669f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 7 Jun 2018 19:25:22 +0100 Subject: [PATCH] Don't build gst-python if required deps aren't available --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 9134abff02..17157ab4a9 100644 --- a/meson.build +++ b/meson.build @@ -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')