]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: Substitute DBUS_APIDOC_LINK
authorSimon McVittie <smcv@collabora.com>
Wed, 25 Sep 2024 14:39:49 +0000 (15:39 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 1 Oct 2024 14:39:20 +0000 (14:39 +0000)
doc/index.html.in is common to the Meson and CMake build systems, so
every time a new variable gets substituted into it, both the Meson and
CMake build systems need to provide a value for that variable.

Fixes: b58ca0e1 "cmake: Inclusion of a link in html overview file corrected"
Signed-off-by: Simon McVittie <smcv@collabora.com>
meson.build

index 2f99792f88b0bec81aa8b71de409919786eed991..d512f798ff471dcbc13d44e1b8efbb726fa05e09 100644 (file)
@@ -336,6 +336,10 @@ can_upload_docs = doxygen.found() and xsltproc.found() and ducktype.found()
 qhelpgen = find_program('qhelpgenerator', 'qhelpgenerator-qt5', required: get_option('qt_help'))
 qt_help_generate = doxygen.found() and qhelpgen.found()
 
+data_config.set(
+    'DBUS_APIDOC_LINK',
+    doxygen.found() ? '<a href="api/html/index.html">libdbus API Documentation</a>' : '',
+)
 data_config.set('DBUS_GENERATE_MAN', platform_windows ? 'NO' : 'YES')
 data_config.set('DOXYGEN_QCH_FILE', meson.current_build_dir()
     / 'doc' / 'api' / 'qch' / 'dbus-@0@.qch'.format(version))