llvm.org GIT mirror llvm / 8d5e5d4
Doxygen: add build option to use svg instead of png files for graphs Differential Revision: http://reviews.llvm.org/D11994 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245256 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
4 changed file(s) with 15 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
386386 ``-DLLVM_ENABLE_DOXYGEN_QT_HELP=ON``; otherwise this has no
387387 effect.
388388
389 **LLVM_DOXYGEN_SVG**:BOOL
390 Uses .svg files instead of .png files for graphs in the Doxygen output.
391 Defaults to OFF.
392
389393 **LLVM_ENABLE_SPHINX**:BOOL
390394 If enabled CMake will search for the ``sphinx-build`` executable and will make
391395 the ``SPHINX_OUTPUT_HTML`` and ``SPHINX_OUTPUT_MAN`` CMake options available.
5555 set(llvm_doxygen_qhp_cust_filter_attrs "")
5656 endif()
5757
58 option(LLVM_DOXYGEN_SVG
59 "Use svg instead of png files for doxygen graphs." OFF)
60 if (LLVM_DOXYGEN_SVG)
61 set(DOT_IMAGE_FORMAT "svg")
62 else()
63 set(DOT_IMAGE_FORMAT "png")
64 endif()
65
5866 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
5967 ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
6068
7280 set(llvm_doxygen_qhelpgenerator_path)
7381 set(llvm_doxygen_qhp_cust_filter_name)
7482 set(llvm_doxygen_qhp_cust_filter_attrs)
83 set(DOT_IMAGE_FORMAT)
7584
7685 add_custom_target(doxygen-llvm
7786 COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg
3030 -e 's/@llvm_doxygen_qhp_cust_filter_name@//g' \
3131 -e 's/@llvm_doxygen_qhp_namespace@//g' \
3232 -e 's/@searchengine_url@//g' \
33 -e 's/@DOT_IMAGE_FORMAT@/png/g' \
3334 > $@
3435 endif
3536
22042204 # The default value is: png.
22052205 # This tag requires that the tag HAVE_DOT is set to YES.
22062206
2207 DOT_IMAGE_FORMAT = png
2207 DOT_IMAGE_FORMAT = @DOT_IMAGE_FORMAT@
22082208
22092209 # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
22102210 # enable generation of interactive SVG images that allow zooming and panning.