f-stack/dpdk/doc/guides/meson.build

31 lines
916 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
sphinx = find_program('sphinx-build', required: get_option('enable_docs'))
2020-06-18 16:55:50 +00:00
if not sphinx.found()
2022-09-06 04:00:10 +00:00
subdir_done()
2020-06-18 16:55:50 +00:00
endif
2019-06-25 11:12:58 +00:00
2021-02-05 08:48:47 +00:00
extra_sphinx_args = []
if get_option('werror')
2022-09-06 04:00:10 +00:00
extra_sphinx_args += '-W'
2021-02-05 08:48:47 +00:00
endif
2021-01-28 17:08:59 +00:00
htmldir = join_paths(get_option('datadir'), 'doc', 'dpdk')
2020-06-18 16:55:50 +00:00
html_guides = custom_target('html_guides',
2022-09-06 04:00:10 +00:00
input: files('index.rst'),
output: 'html',
command: [sphinx_wrapper, sphinx, meson.project_version(),
meson.current_source_dir(), meson.current_build_dir(),
extra_sphinx_args],
depfile: '.html.d',
build_by_default: get_option('enable_docs'),
install: get_option('enable_docs'),
install_dir: htmldir)
2019-06-25 11:12:58 +00:00
2022-09-06 04:00:10 +00:00
install_data(files('custom.css'), install_dir: join_paths(htmldir,'_static', 'css'))
2021-01-28 17:08:59 +00:00
2020-06-18 16:55:50 +00:00
doc_targets += html_guides
doc_target_names += 'HTML_Guides'