parent
34a1fe3f19
commit
7539108e26
|
|
@ -28,11 +28,41 @@ set (DOXYGEN_PREDEFINED
|
|||
"DGUI_END_NAMESPACE=}}"
|
||||
"DGUI_USE_NAMESPACE=using namespace Dtk::Gui\;"
|
||||
)
|
||||
|
||||
set (BUILD_THEME OFF CACHE BOOL "Build doxgen theme")
|
||||
if(BUILD_THEME)
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/doxygen-theme")
|
||||
message(STATUS "doxygen-theme exists")
|
||||
else()
|
||||
execute_process(COMMAND git clone https://github.com/linuxdeepin/doxygen-theme.git --depth=1
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
TIMEOUT 60
|
||||
)
|
||||
execute_process(COMMAND bash themesetting.sh
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/doxygen-theme/
|
||||
)
|
||||
endif()
|
||||
set (DOXYGEN_HTML_EXTRA_STYLESHEET "docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome.css"
|
||||
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-sidebar-only.css"
|
||||
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css"
|
||||
)
|
||||
set (DOXYGEN_HTML_EXTRA_FILES "docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"
|
||||
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"
|
||||
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-paragraph-link.js"
|
||||
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-interactive-toc.js"
|
||||
)
|
||||
set (DOXYGEN_GENERATE_TREEVIEW "YES")
|
||||
set (DOXYGEN_DISABLE_INDEX "NO")
|
||||
set (DOXYGEN_FULL_SIDEBAR "NO")
|
||||
set (DOXYGEN_HTML_HEADER "docs/doxygen-theme/doxygen-awesome-css/header.html")
|
||||
set (DOXYGEN_HTML_FOOTER "docs/doxygen-theme/doxygen-awesome-css/footer.html")
|
||||
endif()
|
||||
|
||||
set (DOXYGEN_MACRO_EXPANSION "YES")
|
||||
set (DOXYGEN_EXPAND_ONLY_PREDEF "YES")
|
||||
|
||||
# Exclude private classes.
|
||||
set (DOXYGEN_EXCLUDE_PATTERNS
|
||||
set (DOXYGEN_EXCLUDE_PATTERNS
|
||||
${PROJECT_SOURCE_DIR}/src/util/private/dimagehandlerlibs_p.h
|
||||
${PROJECT_SOURCE_DIR}/src/util/dimagehandlerlibs.cpp
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue