1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2019, Olivier MATZ <zer0@droids-corp.org>
4 doc_install_dir = join_paths('share', 'doc', 'libecoli')
6 cdata = configuration_data()
7 cdata.set('VERSION', meson.project_version())
8 cdata.set('OUTPUT', join_paths(meson.build_root(), 'doc', 'api'))
9 cdata.set('TOPDIR', meson.source_root())
11 doxygen = find_program('doxygen',
12 required : get_option('build_doc'))
14 sphinx_build = find_program(
15 'sphinx-build', required: get_option('build_doc'))
17 if get_option('build_doc')
18 doxygen_conf = configure_file(
24 doxygen_build = custom_target(
28 command: [doxygen, '@INPUT@', '@OUTPUT@'],
29 build_by_default: true,
30 install_dir: doc_install_dir)
32 html_doc = custom_target('html_doc',
33 input: meson.current_source_dir(),
35 command: [sphinx_build, '@INPUT@', '@OUTPUT@'],
36 install: get_option('build_doc'),
37 install_dir: doc_install_dir)