From 95c1033b7c805da8c2bc69f6f43277008a5980b5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Dec 2022 19:23:57 -0500 Subject: Replace duplicated dox_to_sphinx script with sphinxygen dependency --- doc/meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc/meson.build') diff --git a/doc/meson.build b/doc/meson.build index 7e447d5..4bccb1f 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -4,10 +4,15 @@ docdir = get_option('datadir') / 'doc' doxygen = find_program('doxygen', required: get_option('docs')) -dox_to_sphinx = files('../scripts/dox_to_sphinx.py') +sphinxygen = find_program('sphinxygen', required: false) sphinx_build = find_program('sphinx-build', required: get_option('docs')) -build_docs = doxygen.found() and sphinx_build.found() +if not sphinxygen.found() + subproject('sphinxygen') + sphinxygen = find_program('sphinxygen', required: get_option('docs')) +endif + +build_docs = doxygen.found() and sphinxygen.found() and sphinx_build.found() if build_docs subdir('c') -- cgit v1.2.1