@@ -37,13 +37,11 win32:{ | |||
|
37 | 37 | docs.depends = FORCE |
|
38 | 38 | QMAKE_EXTRA_TARGETS += docs |
|
39 | 39 | |
|
40 | coverage:{ | |
|
41 | ||
|
42 | CONFIG+=debug | |
|
40 | unix:coverage:{ | |
|
43 | 41 | QMAKE_DISTCLEAN += -r ./coverage |
|
44 | 42 | QMAKE_CLEAN += build/*.gcda build/*.gcno |
|
45 | 43 | QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage |
|
46 | ||
|
44 | ||
|
47 | 45 | buildcoverage.target = build_coverage |
|
48 | 46 | buildcoverage.depends = all |
|
49 | 47 | buildcoverage.commands = mkdir -p ./coverage; \ |
@@ -1,5 +1,6 | |||
|
1 | 1 | |
|
2 | 2 | LIBRARY_NAME = QtCommercialChart |
|
3 | coverage: CONFIG+=debug | |
|
3 | 4 | |
|
4 | 5 | ##################### SHADOW CONFIG ################################################# |
|
5 | 6 | |
@@ -107,3 +108,4 CONFIG(debug, debug|release) { | |||
|
107 | 108 | CONFIG+=test_private |
|
108 | 109 | DEFINES+=BUILD_PRIVATE_UNIT_TESTS |
|
109 | 110 | } |
|
111 |
@@ -210,13 +210,12 win32:QMAKE_DISTCLEAN += /Q \ | |||
|
210 | 210 | |
|
211 | 211 | ############################## COVERAGE ######################################### |
|
212 | 212 | |
|
213 | coverage:{ | |
|
213 | unix:coverage:{ | |
|
214 | 214 | |
|
215 | 215 | QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage |
|
216 | 216 | QMAKE_LDFLAGS += -fprofile-arcs -ftest-coverage |
|
217 | 217 | |
|
218 | 218 | LIBS += -lgcov |
|
219 | CONFIG += debug | |
|
220 | 219 | |
|
221 | 220 | QMAKE_CLEAN += $$OBJECTS_DIR/*.gcda $$OBJECTS_DIR/*.gcno $$PWD/*.gcov ../coverage/*.info |
|
222 | 221 | QMAKE_EXTRA_TARGETS += preparecoverage gencoverage |
General Comments 0
You need to be logged in to leave comments.
Login now