mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 05:00:48 +01:00
cmake: Skip docs generation if the Doxyfile is missing
The Doxyfile is not included with minimal distributions.
This commit is contained in:
parent
47798d3dbf
commit
7c19cb90e1
@ -240,16 +240,18 @@ PRINT_CEF_CONFIG()
|
|||||||
# Define the API documentation target.
|
# Define the API documentation target.
|
||||||
#
|
#
|
||||||
|
|
||||||
find_package(Doxygen)
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile")
|
||||||
if(DOXYGEN_FOUND)
|
find_package(Doxygen)
|
||||||
add_custom_target(apidocs ALL
|
if(DOXYGEN_FOUND)
|
||||||
# Generate documentation in the docs/html directory.
|
add_custom_target(apidocs ALL
|
||||||
COMMAND "${DOXYGEN_EXECUTABLE}" Doxyfile
|
# Generate documentation in the docs/html directory.
|
||||||
# Write a docs/index.html file.
|
COMMAND "${DOXYGEN_EXECUTABLE}" Doxyfile
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo "<html><head><meta http-equiv=\"refresh\" content=\"0;URL='html/index.html'\"/></head></html>" > docs/index.html
|
# Write a docs/index.html file.
|
||||||
WORKING_DIRECTORY "${CEF_ROOT}"
|
COMMAND ${CMAKE_COMMAND} -E echo "<html><head><meta http-equiv=\"refresh\" content=\"0;URL='html/index.html'\"/></head></html>" > docs/index.html
|
||||||
COMMENT "Generating API documentation with Doxygen..."
|
WORKING_DIRECTORY "${CEF_ROOT}"
|
||||||
VERBATIM )
|
COMMENT "Generating API documentation with Doxygen..."
|
||||||
else()
|
VERBATIM )
|
||||||
message(WARNING "Doxygen must be installed to generate API documentation.")
|
else()
|
||||||
|
message(WARNING "Doxygen must be installed to generate API documentation.")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
Loading…
x
Reference in New Issue
Block a user