forked from OSchip/llvm-project
[cmake] Created an aggregate doxygen target for generating doxygen documentation for llvm/all subprojects. Renamed llvm's doxygen generation command to doxygen-llvm.
llvm-svn: 189506
This commit is contained in:
parent
9d52a94cd1
commit
9cc5a45270
|
@ -465,6 +465,15 @@ set(LLVM_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||||
if (LLVM_ENABLE_DOXYGEN)
|
if (LLVM_ENABLE_DOXYGEN)
|
||||||
message(STATUS "Doxygen enabled.")
|
message(STATUS "Doxygen enabled.")
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
|
|
||||||
|
if (DOXYGEN_FOUND)
|
||||||
|
# If we find doxygen and we want to enable doxygen by default create a
|
||||||
|
# global aggregate doxygen target for generating llvm and any/all
|
||||||
|
# subprojects doxygen documentation.
|
||||||
|
if (LLVM_BUILD_DOCS)
|
||||||
|
add_custom_target(doxygen ALL)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "Doxygen disabled.")
|
message(STATUS "Doxygen disabled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
|
|
||||||
if (LLVM_BUILD_DOCS)
|
|
||||||
set(LLVM_DOCS_ADD_TO_ALL ALL)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (DOXYGEN_FOUND)
|
if (DOXYGEN_FOUND)
|
||||||
if (LLVM_ENABLE_DOXYGEN)
|
if (LLVM_ENABLE_DOXYGEN)
|
||||||
set(abs_top_srcdir ${LLVM_MAIN_SRC_DIR})
|
set(abs_top_srcdir ${LLVM_MAIN_SRC_DIR})
|
||||||
|
@ -18,10 +14,14 @@ if (LLVM_ENABLE_DOXYGEN)
|
||||||
set(abs_top_builddir)
|
set(abs_top_builddir)
|
||||||
set(DOT)
|
set(DOT)
|
||||||
|
|
||||||
add_custom_target(doxygen ${LLVM_DOCS_ADD_TO_ALL}
|
add_custom_target(doxygen-llvm
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg
|
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
COMMENT "Generating doxygen documentation." VERBATIM)
|
COMMENT "Generating llvm doxygen documentation." VERBATIM)
|
||||||
|
|
||||||
|
if (LLVM_BUILD_DOCS)
|
||||||
|
add_dependencies(doxygen doxygen-llvm)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html
|
||||||
|
|
Loading…
Reference in New Issue