on xenial help sign in
Move doc list to CMakeLists.txt from Doxyfile.in and unhide undocumented members.
f1e13feMichał Sawicz
doc/CMakeLists.txt+20−1
@@ -8,10 +8,29 @@ find_program(DOXYQML_EXECUTABLE doxyqml /usr/bin)
8if (NOT DOXYGEN_FOUND OR NOT DOT_EXECUTABLE OR NOT DOXYQML_EXECUTABLE)
8if (NOT DOXYGEN_FOUND OR NOT DOT_EXECUTABLE OR NOT DOXYQML_EXECUTABLE)
9 message(WARNING "Cannot generate documentation: doxygen, doxyqml and/or graphviz not found")
9 message(WARNING "Cannot generate documentation: doxygen, doxyqml and/or graphviz not found")
10else()
10else()
11+ file(GLOB_RECURSE DOC_FILES
12+ ${CMAKE_BINARY_DIR}/include/*.h
13+ ${CMAKE_SOURCE_DIR}/include/*.h
14+ ${CMAKE_SOURCE_DIR}/src/*.h
15+ ${CMAKE_SOURCE_DIR}/src/*.cpp
16+ ${CMAKE_SOURCE_DIR}/plugins/*.h
17+ ${CMAKE_SOURCE_DIR}/plugins/*.cpp
18+ ${CMAKE_SOURCE_DIR}/qml/*.qml
19+ ${CMAKE_SOURCE_DIR}/qml/*.js
20+ ${CMAKE_SOURCE_DIR}/tests/autopilot/*.py
21+ ${CMAKE_SOURCE_DIR}/tests/utils/*.h
22+ ${CMAKE_SOURCE_DIR}/tests/utils/*.cpp
23+ ${CMAKE_SOURCE_DIR}/tests/utils/*.qml
24+ ${CMAKE_SOURCE_DIR}/tests/utils/*.js
25+ ${CMAKE_SOURCE_DIR}/tests/autopilot/unity8/shell/emulators/*.py
26+ ${CMAKE_SOURCE_DIR}/tests/autopilot/unity8/process_helpers.py)
27+
28+ string(REPLACE ";" " " DOXYGEN_INPUT "${DOC_FILES}")
29+
11 configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_BINARY_DIR}/doc/Doxyfile @ONLY IMMEDIATE)
30 configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_BINARY_DIR}/doc/Doxyfile @ONLY IMMEDIATE)
12 add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html
31 add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html
13 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doc/Doxyfile
32 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doc/Doxyfile
14− DEPENDS ${PROJECT_BINARY_DIR}/doc/Doxyfile)
33+ DEPENDS ${PROJECT_BINARY_DIR}/doc/Doxyfile ${DOC_FILES})
15 add_custom_target(doc ALL
34 add_custom_target(doc ALL
16 DEPENDS ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html)
35 DEPENDS ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html)
17 install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}
36 install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}
doc/Doxyfile.in+2−8
@@ -459,7 +459,7 @@ EXTRACT_ANON_NSPACES = NO
459# section is generated. This option has no effect if EXTRACT_ALL is enabled.
459# section is generated. This option has no effect if EXTRACT_ALL is enabled.
460# The default value is: NO.
460# The default value is: NO.
461
461
462−HIDE_UNDOC_MEMBERS = YES
462+HIDE_UNDOC_MEMBERS = NO
463
463
464# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
464# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
465# undocumented classes that are normally visible in the class hierarchy. If set
465# undocumented classes that are normally visible in the class hierarchy. If set
@@ -753,13 +753,7 @@ WARN_LOGFILE =
753# spaces.
753# spaces.
754# Note: If this tag is empty the current directory is searched.
754# Note: If this tag is empty the current directory is searched.
755
755
756−INPUT = @PROJECT_SOURCE_DIR@/include \
756+INPUT = @DOXYGEN_INPUT@
757− @PROJECT_SOURCE_DIR@/src \
758− @PROJECT_SOURCE_DIR@/qml \
759− @PROJECT_SOURCE_DIR@/plugins \
760− @PROJECT_SOURCE_DIR@/tests/utils \
761− @PROJECT_SOURCE_DIR@/tests/autopilot/unity8/shell/emulators \
762− @PROJECT_SOURCE_DIR@/tests/autopilot/unity8/process_helpers.py
763
757
764# This tag can be used to specify the character encoding of the source files
758# This tag can be used to specify the character encoding of the source files
765# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
759# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses