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
1414 OFF
1515)
1616
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+
1723# This function defines everything needed to generate Doxygen docs
1824function (_setup_doxygen)
1925 # We generate doxygen only for the public headers to keep the Doxyrest
2026 # generated rst files clean.
2127 # 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 ()
2232 set (DOXYGEN_INPUT_DIR ../dpctl-capi/include )
2333 set (DOXYGEN_OUTPUT_DIR ${DOC_OUTPUT_DIR} /doxygen)
2434 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 =
11801180# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
11811181# The default value is: YES.
11821182
1183- GENERATE_HTML = YES
1183+ GENERATE_HTML = @GENERATE_HTML@
11841184
11851185# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
11861186# 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