File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,27 @@ set_target_properties(
118
118
ADDITIONAL_CLEAN_FILES "${DOXY_OUT} "
119
119
)
120
120
121
+ #-------------------------------------------------------------------------------
122
+ # Doxygen Coverage
123
+
124
+ add_custom_target (
125
+ doxygen-coverage
126
+ COMMAND ${PYTHON_EXECUTABLE} -m coverxygen
127
+ --xml-dir ${CMAKE_CURRENT_BINARY_DIR} /doxygen/xml/
128
+ --src-dir ${ZEPHYR_BASE} /include /
129
+ --output ${CMAKE_CURRENT_BINARY_DIR} /doc -coverage.info
130
+ COMMAND lcov
131
+ --remove ${CMAKE_CURRENT_BINARY_DIR} /doc -coverage.info "*/deprecated"
132
+ > ${CMAKE_CURRENT_BINARY_DIR} /new.info
133
+ COMMAND genhtml
134
+ --no -function-coverage
135
+ --no -branch-coverage
136
+ ${CMAKE_CURRENT_BINARY_DIR} /new.info
137
+ -o ${CMAKE_CURRENT_BINARY_DIR} /coverage-report
138
+ DEPENDS doxygen
139
+ COMMENT "Generating Doxygen coverage info and HTML report..."
140
+ )
141
+
121
142
#-------------------------------------------------------------------------------
122
143
# devicetree
123
144
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ HW_FEATURES_VENDOR_FILTER ?=
14
14
# ------------------------------------------------------------------------------
15
15
# Documentation targets
16
16
17
- .PHONY : configure clean html html-fast html-live html-live-fast latex pdf doxygen
17
+ .PHONY : configure clean html html-fast html-live html-live-fast latex pdf doxygen doxygen-coverage
18
18
19
19
html-fast :
20
20
${MAKE} html DT_TURBO_MODE=1 HW_FEATURES_TURBO_MODE=1
21
21
22
22
html-live-fast :
23
23
${MAKE} html-live DT_TURBO_MODE=1 HW_FEATURES_TURBO_MODE=1
24
24
25
- html html-live latex pdf linkcheck doxygen : configure
25
+ html html-live latex pdf linkcheck doxygen doxygen-coverage : configure
26
26
cmake --build ${BUILDDIR} --target $@
27
27
28
28
configure :
You can’t perform that action at this time.
0 commit comments