on xenial help sign in
Move doc list to CMakeLists.txt from Doxyfile.in and unhide undocumented members.
commitf1e13fe12b3c719663eb5c92d0968a8a100668cd authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 31 Jan 2014, 00:27 (13 years ago) parentc8439fa
2 files changed+22−9
doc/CMakeLists.txt+20−1 doc/Doxyfile.in+2−8
doc/CMakeLists.txt+20−1
@@ -8,10 +8,29 @@ find_program(DOXYQML_EXECUTABLE doxyqml /usr/bin)
88if (NOT DOXYGEN_FOUND OR NOT DOT_EXECUTABLE OR NOT DOXYQML_EXECUTABLE)
99 message(WARNING "Cannot generate documentation: doxygen, doxyqml and/or graphviz not found")
1010else()
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+
1130 configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_BINARY_DIR}/doc/Doxyfile @ONLY IMMEDIATE)
1231 add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html
1332 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doc/Doxyfile
14− DEPENDS ${PROJECT_BINARY_DIR}/doc/Doxyfile)
33+ DEPENDS ${PROJECT_BINARY_DIR}/doc/Doxyfile ${DOC_FILES})
1534 add_custom_target(doc ALL
1635 DEPENDS ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html)
1736 install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}
doc/Doxyfile.in+2−8
@@ -459,7 +459,7 @@ EXTRACT_ANON_NSPACES = NO
459459# section is generated. This option has no effect if EXTRACT_ALL is enabled.
460460# The default value is: NO.
461461
462−HIDE_UNDOC_MEMBERS = YES
462+HIDE_UNDOC_MEMBERS = NO
463463
464464# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
465465# undocumented classes that are normally visible in the class hierarchy. If set
@@ -753,13 +753,7 @@ WARN_LOGFILE =
753753# spaces.
754754# Note: If this tag is empty the current directory is searched.
755755
756−INPUT = @PROJECT_SOURCE_DIR@/include \
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
756+INPUT = @DOXYGEN_INPUT@
763757
764758# This tag can be used to specify the character encoding of the source files
765759# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses