File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,10 @@ LLVM-specific variables
387
387
``-DLLVM_ENABLE_DOXYGEN_QT_HELP=ON ``; otherwise this has no
388
388
effect.
389
389
390
+ **LLVM_DOXYGEN_SVG **:BOOL
391
+ Uses .svg files instead of .png files for graphs in the Doxygen output.
392
+ Defaults to OFF.
393
+
390
394
**LLVM_ENABLE_SPHINX **:BOOL
391
395
If enabled CMake will search for the ``sphinx-build `` executable and will make
392
396
the ``SPHINX_OUTPUT_HTML `` and ``SPHINX_OUTPUT_MAN `` CMake options available.
Original file line number Diff line number Diff line change @@ -56,6 +56,14 @@ if (LLVM_ENABLE_DOXYGEN)
56
56
set (llvm_doxygen_qhp_cust_filter_attrs "" )
57
57
endif ()
58
58
59
+ option (LLVM_DOXYGEN_SVG
60
+ "Use svg instead of png files for doxygen graphs." OFF )
61
+ if (LLVM_DOXYGEN_SVG )
62
+ set (DOT_IMAGE_FORMAT "svg" )
63
+ else ()
64
+ set (DOT_IMAGE_FORMAT "png" )
65
+ endif ()
66
+
59
67
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /doxygen.cfg.in
60
68
${CMAKE_CURRENT_BINARY_DIR} /doxygen.cfg @ONLY )
61
69
@@ -73,6 +81,7 @@ if (LLVM_ENABLE_DOXYGEN)
73
81
set (llvm_doxygen_qhelpgenerator_path )
74
82
set (llvm_doxygen_qhp_cust_filter_name )
75
83
set (llvm_doxygen_qhp_cust_filter_attrs )
84
+ set (DOT_IMAGE_FORMAT )
76
85
77
86
add_custom_target (doxygen-llvm
78
87
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} /doxygen.cfg
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ $(PROJ_OBJ_DIR)/doxygen.cfg: doxygen.cfg.in
31
31
-e ' s/@llvm_doxygen_qhp_cust_filter_name@//g' \
32
32
-e ' s/@llvm_doxygen_qhp_namespace@//g' \
33
33
-e ' s/@searchengine_url@//g' \
34
+ -e ' s/@DOT_IMAGE_FORMAT@/png/g' \
34
35
> $@
35
36
endif
36
37
Original file line number Diff line number Diff line change @@ -2205,7 +2205,7 @@ DIRECTORY_GRAPH = YES
2205
2205
# The default value is: png.
2206
2206
# This tag requires that the tag HAVE_DOT is set to YES.
2207
2207
2208
- DOT_IMAGE_FORMAT = png
2208
+ DOT_IMAGE_FORMAT = @DOT_IMAGE_FORMAT@
2209
2209
2210
2210
# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
2211
2211
# enable generation of interactive SVG images that allow zooming and panning.
You can’t perform that action at this time.
0 commit comments