mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-27 18:28:18 +02:00
../../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>
20 lines
405 B
Bash
Executable file
20 lines
405 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "@MESON_WERROR@" = "YES" ]; then
|
|
SPHINX_WERROR="-W"
|
|
else
|
|
SPHINX_WERROR=""
|
|
fi
|
|
|
|
set -e
|
|
|
|
BUILDINFO_ORIG="@OUTDIR@/.buildinfo"
|
|
BUILDINFO_SAVE="@SRCDIR@/buildinfo.save"
|
|
|
|
[ -f "$BUILDINFO_SAVE" ] && mv -f "$BUILDINFO_SAVE" "$BUILDINFO_ORIG"
|
|
|
|
@DOXYGEN_CMD@ @DOXYGEN_CONF@
|
|
|
|
@SPHINX_CMD@ $SPHINX_WERROR -E -q -j auto -d @DOCTREES_DIR@ @SRCDIR@ @OUTDIR@
|
|
|
|
mv -f "$BUILDINFO_ORIG" "$BUILDINFO_SAVE"
|