From b20bb6f205226f5ace1614753c1c083bff74bfab Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Wed, 30 Aug 2017 23:18:39 +0200 Subject: [PATCH] Only build api docs if -Ddocumentation=true This matches the behaviour of the cmake build system. Also search for gtk-doc, which is required to build the api docs and better fail early than later during make install. --- docs/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/meson.build b/docs/meson.build index bcd7123f..b86be2b5 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -27,8 +27,6 @@ custom_target('man-appstreamcli', ] ) -subdir('api/') - # # Documentation # @@ -71,9 +69,12 @@ as_doc_src = [ ] if get_option('documentation') + find_program('gtkdoc-scan') publican_exe = find_program('publican') python_exe = find_program('python3') + subdir('api/') + build_docs_cmd = [ python_exe, join_paths(meson.current_source_dir(), 'doc-build-helper.py'),