meson: Substitute DBUS_APIDOC_LINK

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>
This commit is contained in:
Simon McVittie 2024-09-25 15:39:49 +01:00
parent f546ddd937
commit 34a31730ec

View 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))