Commit d6af4953 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix bug not building apidoc and qch file by default, if enabled

For easier troubleshooting, a status line is now displayed if
qhelpgenerator was found.

A new cmake option BUILD_APIDOC has been added (default:on), which
can be used to disable the creation of api doc if this is not desired.

BUG:419202
FIXED-IN:2.30.90 (KDE releases 20.03.90)
parent 8ade7288
......@@ -19,6 +19,8 @@ endif()
set(UMBRELLO_VERSION_PATCH ${RELEASE_SERVICE_VERSION_MICRO})
option(BUILD_APIDOC "Create api documentation" ON)
option(BUILD_ICONS "Create icons from svg source" OFF)
option(BUILD_CURSOR_ICONS "Create cursor icons from svg source" OFF)
......@@ -234,10 +236,10 @@ add_unstable_feature(OBJECT_DIAGRAM) # see https://bugs.kde.org/show_bug.cgi?id=
# requires cmake >= 3.9.6
find_package(Doxygen OPTIONAL_COMPONENTS dot)
if(DOXYGEN_FOUND)
if(DOXYGEN_FOUND AND BUILD_APIDOC)
message(STATUS "found doxygen package")
find_program(QHELPGENERATOR_EXECUTABLE qhelpgenerator)
message(STATUS "found qhelpgenerator ${QHELPGENERATOR_EXECUTABLE}")
set(DOXYGEN_ABBREVIATE_BRIEF "The $name class" "The $name widget")
set(DOXYGEN_CALL_GRAPH YES)
set(DOXYGEN_EXCLUDE_PATTERNS */lib/*)
......@@ -267,6 +269,7 @@ if(DOXYGEN_FOUND)
endif()
doxygen_add_docs(apidoc
ALL
${CMAKE_SOURCE_DIR}
COMMENT "generating api doc"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment