From 7d2183d13b298f33733e67184dd86a34a71723bf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Jan 2021 19:17:31 +0100 Subject: Switch to Meson --- doc/meson.build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/meson.build (limited to 'doc/meson.build') diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 00000000..5555cfbb --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,17 @@ +docdir = get_option('datadir') / 'doc' + +doxygen = find_program('doxygen', required: get_option('docs')) +dox_to_sphinx = find_program('../scripts/dox_to_sphinx.py') +sphinx_build = find_program('sphinx-build', required: get_option('docs')) + +build_docs = doxygen.found() and sphinx_build.found() + +if build_docs + subdir('_static') + subdir('c') +endif + +if not meson.is_subproject() and meson.version().version_compare('>=0.53.0') + summary('Documentation', build_docs, bool_yn: true) +endif + -- cgit v1.2.1