diff options
author | David Robillard <d@drobilla.net> | 2020-11-26 16:07:41 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-26 17:09:15 +0100 |
commit | 503ba93a4ebf316ab01b468808e4cda2da8b863e (patch) | |
tree | ebfbcd7829879def472028617abeb021c9a26e64 /wscript | |
parent | caf3f4fc314608d8d8f8be853f4bde6bb50188b0 (diff) | |
download | pugl-503ba93a4ebf316ab01b468808e4cda2da8b863e.tar.gz pugl-503ba93a4ebf316ab01b468808e4cda2da8b863e.tar.bz2 pugl-503ba93a4ebf316ab01b468808e4cda2da8b863e.zip |
Generate documentation with Sphinx
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -159,6 +159,14 @@ def configure(conf): '-Wno-direct-ivar-access'], }) + if conf.env.DOCS: + conf.load('python') + conf.load('sphinx') + conf.find_program('doxygen', var='DOXYGEN') + + if not (conf.env.DOXYGEN and conf.env.SPHINX_BUILD): + conf.env.DOCS = False + sys_header = 'windows.h' if platform == 'win32' else '' if not Options.options.no_vulkan: @@ -270,7 +278,9 @@ def configure(conf): conf.env.update({ 'BUILD_SHARED': not Options.options.no_shared, 'BUILD_STATIC': conf.env.BUILD_TESTS or not Options.options.no_static, - 'BUILD_STRICT_HEADER_TEST': Options.options.strict}) + 'BUILD_STRICT_HEADER_TEST': Options.options.strict, + 'PUGL_MAJOR_VERSION': PUGL_MAJOR_VERSION, + }) if conf.env.TARGET_PLATFORM == 'win32': conf.env.PUGL_PLATFORM = 'win' @@ -672,10 +682,8 @@ def build(bld): uselib=['GL', 'M']) if bld.env.DOCS: - autowaf.build_dox( - bld, 'PUGL', PUGL_VERSION, top, out, install_man=False) - bld.install_files('${MANDIR}/man3', 'doc/man/man3/pugl.3') - bld.install_files('${MANDIR}/man3', 'doc/man/man3/puglxx.3') + bld.recurse('doc/c') + bld.recurse('doc/cpp') def test(tst): |