From: Simon McVittie Date: Tue, 1 Oct 2024 12:17:41 +0000 (+0100) Subject: meson: Install Doxygen docs as api/html/*.html X-Git-Tag: dbus-1.15.12~16^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f546ddd937421796bc8b2e722b2b9756ae61c61e;p=thirdparty%2Fdbus.git meson: Install Doxygen docs as api/html/*.html This ensures that the Doxygen-built documentation has the same layout in the installed files that it does in the build tree and on the website. If we don't keep the same layout, then there is no value for the `DBUS_APIDOC_LINK` in index.html that would be correct for both the build tree and the installed tree. The build tree effectively has a html subdirectory hard-coded, because that's how Doxygen lays out its outputs. This commit is the Meson equivalent of commit 522633b4 "cmake: install api docs in html subdir" in the CMake build system (dbus!473, dbus#519). Signed-off-by: Simon McVittie --- diff --git a/doc/meson_post_install.py b/doc/meson_post_install.py index 106725ccd..98099383a 100644 --- a/doc/meson_post_install.py +++ b/doc/meson_post_install.py @@ -38,7 +38,7 @@ if __name__ == "__main__": qch = Path(arg_qch) qchdir = Path(arg_qchdir) destdir = Path(env_destdir) - apidir = Path(destdir /docdir / 'api') + apidir = Path(destdir / docdir / 'api/html') shutil.rmtree(apidir, ignore_errors=True) shutil.copytree(builddir / 'api/html', apidir) if qch.is_file():