File 0003-cmake-Inclusion-of-a-link-in-html-overview-file-corr.patch of Package mingw32-dbus-1
From 0c9095e451c465afb68a6fa46f7cc58f6bbbd2c5 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Tue, 2 Apr 2024 12:53:29 +0200
Subject: [PATCH 3/3] cmake: Inclusion of a link in html overview file
corrected
The link for api documentation is now only inserted into the html
overview file when it is built.
---
doc/CMakeLists.txt | 5 +++++
doc/index.html.in | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 95ba6da2..f49ec7f6 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -197,6 +197,11 @@ add_docbook(dbus-tutorial SOURCE dbus-tutorial.xml FORMATS ${formats})
#
# handle html index file
#
+if(DBUS_ENABLE_DOXYGEN_DOCS)
+ set(DBUS_APIDOC_LINK "<a href=\"api/html/index.html\">libdbus API Documentation</a>")
+else()
+ set(DBUS_APIDOC_LINK "")
+endif()
configure_file(index.html.in ${CMAKE_CURRENT_BINARY_DIR}/index.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/index.html DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus)
diff --git a/doc/index.html.in b/doc/index.html.in
index feca9fc8..eb61d061 100644
--- a/doc/index.html.in
+++ b/doc/index.html.in
@@ -36,7 +36,7 @@ application manuals
<a href="dbus-test-plan.html">D-Bus Test Plan</a>
<br>
<br>
-<a href="api/index.html">libdbus API Documentation</a>
+@DBUS_APIDOC_LINK@
</td>
<td valign=top>
<a href="dbus-daemon.1.html">D-Bus Daemon manual</a>
--
2.35.3