summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-07 15:25:36 +0100
committerDavid Robillard <d@drobilla.net>2021-01-07 17:29:33 +0100
commiteb0f335d49ac3b501626d9e1ec140978fe795df6 (patch)
treed5f6c8c9874555abdb42f1b901cc47d8f6597fec /wscript
parentefa8abca4b80b2388e828fce069821a20dc68a68 (diff)
downloadlilv-eb0f335d49ac3b501626d9e1ec140978fe795df6.tar.gz
lilv-eb0f335d49ac3b501626d9e1ec140978fe795df6.tar.bz2
lilv-eb0f335d49ac3b501626d9e1ec140978fe795df6.zip
Generate documentation with Sphinx and add an overview
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index dd4beb7..b11b8aa 100644
--- a/wscript
+++ b/wscript
@@ -106,6 +106,9 @@ def configure(conf):
conf.load('autowaf', cache=True)
autowaf.set_c_lang(conf, 'c99')
+ if conf.env.DOCS:
+ conf.load('sphinx')
+
conf.env.BASH_COMPLETION = not Options.options.no_bash_completion
conf.env.BUILD_UTILS = not Options.options.no_utils
conf.env.BUILD_SHARED = not Options.options.no_shared
@@ -546,7 +549,8 @@ def build(bld):
obj.lib = ['rt']
# Documentation
- autowaf.build_dox(bld, 'LILV', LILV_VERSION, top, out)
+ if bld.env.DOCS:
+ bld.recurse('doc/c')
# Man pages
bld.install_files('${MANDIR}/man1', bld.path.ant_glob('doc/*.1'))