1 sphinx = find_program('sphinx-build', required:false)
6 input: ['index.rst', 'conf.py'],
7 command: [sphinx, '-q', '-b', 'html', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@'],
8 build_by_default: true,
10 install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()),
14 'Manpage documentation',
16 input: ['index.rst', 'conf.py'],
17 command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@/man1'],
18 build_by_default: true,
20 install_dir: get_option('datadir'),
24 if get_option('documentation')
25 doxygen = find_program('doxygen', required: false)
28 dconf = configuration_data()
29 dconf.set('VERSION', meson.project_version())
30 dconf.set('abs_top_srcdir', meson.source_root())
32 doxyfile = configure_file(input: 'doxygen.conf.in',
33 output: 'doxygen.conf',
36 datadir = join_paths(get_option('datadir'), 'doc', 'spede')
38 html_target = custom_target('apidocs',
41 command: [doxygen, doxyfile],