diff options
author | Miroslav Safr <miroslav.safr@tieto.com> | 2010-10-19 12:53:09 +0300 |
---|---|---|
committer | Miroslav Safr <miroslav.safr@tieto.com> | 2010-10-22 14:44:27 +0300 |
commit | d6f0b93c4dd6451fb73fd9c6606f434602e69f77 (patch) | |
tree | 05ccd479bdb2a7486f20e53d83190fd68aa247d5 /mkspecs/features | |
parent | ede454bfbc50d11a378b2f9805a178cfe91df354 (diff) |
Changes: Coverage reports: coverage feature moved to CONFIG (.prf)
RevBy:
Details: Coverage feature can be now reused by other applications which are building with libmeegotouch.
It is just enough to have "coverage" option in CONFIG for projects which uses libmeegotouch
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/meegotouch_common.prf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/features/meegotouch_common.prf b/mkspecs/features/meegotouch_common.prf index 04e8e405..356c1121 100644 --- a/mkspecs/features/meegotouch_common.prf +++ b/mkspecs/features/meegotouch_common.prf @@ -34,3 +34,13 @@ contains(TEMPLATE, app) { } LIBS += -L$${M_LIB_DIR} } + +contains( CONFIG, coverage ) { + QMAKE_CXXFLAGS *= -ftest-coverage -fprofile-arcs + LIBS *= -lgcov + + QMAKE_CLEAN *= \ + *.gcda \ + *.gcno \ + *.gcov +} |