Skip to content

Commit 01b8eb4

Browse files
author
Diptorup Deb
committed
Add a flag to make doxygen HTML generation optional. (#450)
1 parent b599852 commit 01b8eb4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1824
function(_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)

docs/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)