weston/doc/sphinx
Pekka Paalanen 6955752b95 doc: fix Meson warning about install_subdir
../../git/weston/doc/sphinx/meson.build:97: WARNING:
Project targets '>= 0.63.0' but uses feature deprecated since '0.60.0':
install_subdir with empty directory. It worked by accident and is buggy.
Use install_emptydir instead.

I get the above warning on a clean build, because the directory in
question is empty at configure time. It gets populated at compile time.

Having to exclude one file from the build complicated fixing this.
custom_target() does not support install-excludes, and it looks like
Sphinx does not allow locating the buildfile elsewhere. One option would
be to use a meson.add_install_script() to delete the unwanted file after
it has been installed, but this seemed more complicated than the
solution I chose.

The intermediate build directory name needs to change from 'doc' to
'weston', so that I don't need to strip_directory which custom_target
does not support. The 'output' array in custom_target() also does not
allow outputs to be speficied in sub-directories.

The sh script is tidied up a little bit with set -e, otherwise it would
have become unreadable.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2025-12-16 15:19:02 +00:00
..
toc ivi-shell: Remove black curtain/set output ready in HMI controller 2025-10-27 05:55:51 +00:00
conf.py.in doc/sphinx/conf.py.in: Change sphinx.ext.intersphinx 2025-05-12 20:29:01 +03:00
doxygen.ini.in doc/sphinx/doxygen.ini.in: Removed deprecated HTML timestampt option 2025-05-12 15:15:01 +03:00
index.rst doc: update and move IVI-shell README to doc 2022-08-08 14:27:41 +00:00
meson.build doc: fix Meson warning about install_subdir 2025-12-16 15:19:02 +00:00
run_doxygen_sphinx.sh.in doc: fix Meson warning about install_subdir 2025-12-16 15:19:02 +00:00