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