doc: Avoid weston install useless documentation files
Avoid .doctrees (~3.5 MB) and .buildinfo to be installed Signed-off-by: Anurup M <anurup.m@huawei.com>
This commit is contained in:
parent
26258817fc
commit
09a7dfb12c
|
@ -47,6 +47,10 @@ doxygen_conf_weston = configure_file(
|
||||||
script_data = configuration_data()
|
script_data = configuration_data()
|
||||||
script_data.set('SRCDIR', meson.current_build_dir())
|
script_data.set('SRCDIR', meson.current_build_dir())
|
||||||
script_data.set('OUTDIR', meson.current_build_dir() + '/doc')
|
script_data.set('OUTDIR', meson.current_build_dir() + '/doc')
|
||||||
|
|
||||||
|
# Set a different directory for doctrees to avoid installing them
|
||||||
|
script_data.set('DOCTREES_DIR', meson.current_build_dir() + '/doctrees')
|
||||||
|
|
||||||
script_data.set('DOXYGEN_CONF', meson.current_build_dir() + '/doxygen.ini')
|
script_data.set('DOXYGEN_CONF', meson.current_build_dir() + '/doxygen.ini')
|
||||||
script_data.set('DOXYGEN_CMD', doxygen.path())
|
script_data.set('DOXYGEN_CMD', doxygen.path())
|
||||||
script_data.set('SPHINX_CMD', sphinx.path())
|
script_data.set('SPHINX_CMD', sphinx.path())
|
||||||
|
@ -84,5 +88,6 @@ docs = run_target(
|
||||||
install_subdir(
|
install_subdir(
|
||||||
sphinx_doc.full_path(),
|
sphinx_doc.full_path(),
|
||||||
install_dir: join_paths(dir_data, 'doc', 'weston'),
|
install_dir: join_paths(dir_data, 'doc', 'weston'),
|
||||||
|
exclude_files: '.buildinfo',
|
||||||
strip_directory: true,
|
strip_directory: true,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@DOXYGEN_CMD@ @DOXYGEN_CONF@ && @SPHINX_CMD@ -E -W -q -j auto @SRCDIR@ @OUTDIR@
|
@DOXYGEN_CMD@ @DOXYGEN_CONF@ && @SPHINX_CMD@ -E -W -q -j auto -d @DOCTREES_DIR@ @SRCDIR@ @OUTDIR@
|
||||||
|
|
Loading…
Reference in New Issue