File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,21 @@ option(DPCTL_USE_MULTIVERSION_TEMPLATE
14
14
OFF
15
15
)
16
16
17
+ # Option to generate HTML from dpxygen
18
+ option (DPCTL_ENABLE_DOXYGEN_HTML
19
+ "Enable generation of html files for C API using Doxygen"
20
+ OFF
21
+ )
22
+
17
23
# This function defines everything needed to generate Doxygen docs
18
24
function (_setup_doxygen )
19
25
# We generate doxygen only for the public headers to keep the Doxyrest
20
26
# generated rst files clean.
21
27
# FIXME: make it possible to generate doxygen for all files.
28
+ set (GENERATE_HTML "NO" )
29
+ if (DPCTL_ENABLE_DOXYGEN_HTML )
30
+ set (GENERATE_HTML "YES" )
31
+ endif ()
22
32
set (DOXYGEN_INPUT_DIR ../dpctl-capi/include )
23
33
set (DOXYGEN_OUTPUT_DIR ${DOC_OUTPUT_DIR} /doxygen )
24
34
set (DOXYGEN_INDEX_FILE ${DOXYGEN_OUTPUT_DIR} /xml/index.xml )
Original file line number Diff line number Diff line change @@ -1180,7 +1180,7 @@ IGNORE_PREFIX =
1180
1180
# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
1181
1181
# The default value is: YES.
1182
1182
1183
- GENERATE_HTML = YES
1183
+ GENERATE_HTML = @GENERATE_HTML@
1184
1184
1185
1185
# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
1186
1186
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
You can’t perform that action at this time.
0 commit comments