forked from nemomobile/mlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coverage.pri
22 lines (20 loc) · 849 Bytes
/
coverage.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
COVERAGE_EXCLUDES = \
/usr/* \
*/moc_*.cpp \
*/*.moc \
*/qrc_*.cpp \
/build/* \
/tests/* \
mnotificationmanagerproxy.h \
mnotificationmanagerproxy.cpp \
coverage.CONFIG = phony
coverage.commands = '\
@echo "--- coverage: extracting info"$$escape_expand(\\n\\t) \
lcov -c -o lcov.info -d .$$escape_expand(\\n\\t) \
@echo "--- coverage: excluding $$join(COVERAGE_EXCLUDES, ", ")"$$escape_expand(\\n\\t) \
lcov -r lcov.info $$join(COVERAGE_EXCLUDES, "' '", "'", "'") -o lcov.info$$escape_expand(\\n\\t) \
@echo "--- coverage: generating html"$$escape_expand(\\n\\t) \
genhtml -o coverage lcov.info --demangle-cpp$$escape_expand(\\n\\t) \
@echo -e "--- coverage: done\\n\\n\\tfile://$${OUT_PWD}/coverage/index.html\\n" \
'
QMAKE_EXTRA_TARGETS += coverage