From: Tomas Krizek Date: Mon, 4 Feb 2019 17:57:17 +0000 (+0100) Subject: meson: doc - add python breathe dependency check X-Git-Tag: v4.0.0~24^2~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb15a89a02c090bfeaff40c1377070cf875a7931;p=thirdparty%2Fknot-resolver.git meson: doc - add python breathe dependency check --- diff --git a/doc/meson.build b/doc/meson.build index c75bd4830..497e096f2 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -2,7 +2,15 @@ if get_option('doc') # doc dependencies doxygen = find_program('doxygen') sphinx_build = find_program('sphinx-build') - # python-breathe is also required, but not auto detected because python 2/3 + + python_breathe = run_command('python3', '-c', 'import breathe') + if python_breathe.returncode() != 0 + # some distros might use python2 sphinx + python_breathe = run_command('python2', '-c', 'import breathe') + if python_breathe.returncode() != 0 + error('missing doc dependency: python breathe') + endif + endif # create doxygen in source dir doc_doxyxml = custom_target(