]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: Install Doxygen docs as api/html/*.html
authorSimon McVittie <smcv@collabora.com>
Tue, 1 Oct 2024 12:17:41 +0000 (13:17 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 1 Oct 2024 14:39:20 +0000 (14:39 +0000)
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 <smcv@collabora.com>
doc/meson_post_install.py

index 106725ccdf9bc4b450d6a538b740844ed7f6f4f7..98099383adbe0b8bac6811d77cb5d0f68eee182e 100644 (file)
@@ -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():