2013-08-24 09:25:21 +02:00
|
|
|
|
|
|
|
if (DOXYGEN_FOUND)
|
|
|
|
if (LLVM_ENABLE_DOXYGEN)
|
|
|
|
set(abs_top_srcdir ${LLVM_MAIN_SRC_DIR})
|
|
|
|
set(abs_top_builddir ${LLVM_BINARY_DIR})
|
|
|
|
|
|
|
|
if (HAVE_DOT)
|
|
|
|
set(DOT ${LLVM_PATH_DOT})
|
|
|
|
endif()
|
2013-08-28 22:28:35 +02:00
|
|
|
|
2013-08-28 23:55:26 +02:00
|
|
|
if (LLVM_DOXYGEN_EXTERNAL_SEARCH)
|
|
|
|
set(enable_searchengine "YES")
|
|
|
|
set(searchengine_url "${LLVM_DOXYGEN_SEARCHENGINE_URL}")
|
|
|
|
set(enable_server_based_search "YES")
|
|
|
|
set(enable_external_search "YES")
|
|
|
|
set(extra_search_mappings "${LLVM_DOXYGEN_SEARCH_MAPPINGS}")
|
2013-08-28 22:28:35 +02:00
|
|
|
else()
|
2013-08-28 23:55:26 +02:00
|
|
|
set(enable_searchengine "NO")
|
|
|
|
set(searchengine_url "")
|
|
|
|
set(enable_server_based_search "NO")
|
|
|
|
set(enable_external_search "NO")
|
|
|
|
set(extra_search_mappings "")
|
2013-08-28 22:28:35 +02:00
|
|
|
endif()
|
2013-08-24 09:25:21 +02:00
|
|
|
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
|
2013-08-28 23:55:26 +02:00
|
|
|
|
2013-08-24 09:25:21 +02:00
|
|
|
set(abs_top_srcdir)
|
|
|
|
set(abs_top_builddir)
|
|
|
|
set(DOT)
|
2013-08-28 23:55:26 +02:00
|
|
|
set(enable_searchengine)
|
|
|
|
set(searchengine_url)
|
|
|
|
set(enable_server_based_search)
|
|
|
|
set(enable_external_search)
|
|
|
|
set(extra_search_mappings)
|
2013-08-24 09:25:21 +02:00
|
|
|
|
2013-08-28 22:28:32 +02:00
|
|
|
add_custom_target(doxygen-llvm
|
2013-08-24 09:25:21 +02:00
|
|
|
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
2013-08-28 22:28:32 +02:00
|
|
|
COMMENT "Generating llvm doxygen documentation." VERBATIM)
|
|
|
|
|
|
|
|
if (LLVM_BUILD_DOCS)
|
|
|
|
add_dependencies(doxygen doxygen-llvm)
|
|
|
|
endif()
|
2013-08-24 09:25:21 +02:00
|
|
|
|
|
|
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html
|
|
|
|
DESTINATION docs/html)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|