aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/pugl/doc/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/pugl/doc/meson.build')
-rw-r--r--subprojects/d2tk/pugl/doc/meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/subprojects/d2tk/pugl/doc/meson.build b/subprojects/d2tk/pugl/doc/meson.build
new file mode 100644
index 0000000..583f09d
--- /dev/null
+++ b/subprojects/d2tk/pugl/doc/meson.build
@@ -0,0 +1,13 @@
+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')
+ subdir('cpp')
+endif