]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Do not let doxygen build man pages on Windows
authorRalf Habacker <ralf.habacker@freenet.de>
Wed, 13 Mar 2019 09:13:09 +0000 (10:13 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 13 Mar 2019 09:13:09 +0000 (10:13 +0100)
This fixes an issue on gitlab CI not been able to create man page
output dir. Also man pages does not make sense on Windows.

Doxyfile.in
configure.ac
doc/CMakeLists.txt

index dbbdb4f746456e919931907d6ab9f80409ed5f04..b5bd51c9c8a03174f3d73b23b7834f2c089b1e10 100644 (file)
@@ -127,7 +127,7 @@ RTF_EXTENSIONS_FILE    =
 #---------------------------------------------------------------------------
 # configuration options related to the man page output
 #---------------------------------------------------------------------------
-GENERATE_MAN           = YES
+GENERATE_MAN           = @DBUS_GENERATE_MAN@
 MAN_OUTPUT             = man
 MAN_EXTENSION          = .3dbus
 MAN_LINKS              = YES
index 3b07e0c922a2bec0c99fa9a553660d73a73fe0be..83b3eb727d32cb2aa9c79c7ab54f02066f674e02 100644 (file)
@@ -1269,6 +1269,13 @@ if test x$enable_doxygen_docs = xyes; then
     fi
 fi
 
+if test x$dbus_win = xno; then
+    DBUS_GENERATE_MAN=YES
+else
+    DBUS_GENERATE_MAN=NO
+fi
+AC_SUBST([DBUS_GENERATE_MAN])
+
 AM_CONDITIONAL(DBUS_DOXYGEN_DOCS_ENABLED, test x$enable_doxygen_docs = xyes)
 AC_MSG_RESULT($enable_doxygen_docs)
 
index 25fd7c3038afc4145bed316026f0e34b653e1cc5..5a5eb85a28c16391333239a738cdefe462a59279 100644 (file)
@@ -12,6 +12,11 @@ endif()
 
 if(DBUS_ENABLE_DOXYGEN_DOCS)
     set(top_srcdir ${CMAKE_SOURCE_DIR})
+    if(WIN32)
+        set(DBUS_GENERATE_MAN NO)
+    else()
+        set(DBUS_GENERATE_MAN YES)
+    endif()
     configure_file(../Doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile )
     add_custom_command(
         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/api/html/index.html