X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fmeson.build;h=03b8bee5679c09084e716f62e7d9eb557a46d391;hb=f16662885472d33570b564e62427199d733be363;hp=daab139c4ec6112b98ef6ae759942a0e86f71a1f;hpb=a4362f150204daa65715a876bd196f1cb955c501;p=dpdk.git diff --git a/doc/guides/meson.build b/doc/guides/meson.build index daab139c4e..03b8bee567 100644 --- a/doc/guides/meson.build +++ b/doc/guides/meson.build @@ -4,22 +4,27 @@ sphinx = find_program('sphinx-build', required: get_option('enable_docs')) if not sphinx.found() - subdir_done() + subdir_done() +endif + +extra_sphinx_args = [] +if get_option('werror') + extra_sphinx_args += '-W' endif htmldir = join_paths(get_option('datadir'), 'doc', 'dpdk') html_guides = custom_target('html_guides', - input: files('index.rst'), - output: 'html', - command: [sphinx_wrapper, sphinx, meson.project_version(), - meson.current_source_dir(), meson.current_build_dir()], - depfile: '.html.d', - build_by_default: get_option('enable_docs'), - install: get_option('enable_docs'), - install_dir: htmldir) + 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) -install_data(files('custom.css'), - install_dir: join_paths(htmldir,'_static', 'css')) +install_data(files('custom.css'), install_dir: join_paths(htmldir,'_static', 'css')) doc_targets += html_guides doc_target_names += 'HTML_Guides'