diff options
author | Miroslav Safr <miroslav.safr@tieto.com> | 2010-12-07 12:36:39 +0200 |
---|---|---|
committer | Miroslav Safr <miroslav.safr@tieto.com> | 2010-12-07 12:42:12 +0200 |
commit | b744b69017711080ed7de39e616f89c8987cce74 (patch) | |
tree | 6cc7ff001a0760b9593ea83c31e4f06650c1b09e | |
parent | 691960760a9ee0a14c4a3cba7e9207ef307b7edf (diff) |
Changes: Coverage reports: separated coverage part to meegotouch_coverage.prf so it can be used also in unit tests/binaries which does not link with libmeegotouch
RevBy:TrustMe
Details: Some binaries does not link with libmeegotouch and we are loosing records from those calls, also can be very easy way reused by other applications and their unit tests
Tested on TeamCity
-rw-r--r-- | mkspecs/features/meegotouch_common.prf | 10 | ||||
-rw-r--r-- | mkspecs/features/meegotouch_coverage.prf | 10 | ||||
-rw-r--r-- | projects.pro | 2 |
3 files changed, 12 insertions, 10 deletions
diff --git a/mkspecs/features/meegotouch_common.prf b/mkspecs/features/meegotouch_common.prf index e8403fdd..0ec21d78 100644 --- a/mkspecs/features/meegotouch_common.prf +++ b/mkspecs/features/meegotouch_common.prf @@ -27,13 +27,3 @@ contains(TEMPLATE, app) { LIBS += -L$${M_LIB_DIR} } - -contains( CONFIG, coverage ) { - QMAKE_CXXFLAGS *= -ftest-coverage -fprofile-arcs - LIBS *= -lgcov - - QMAKE_CLEAN *= \ - *.gcda \ - *.gcno \ - *.gcov -} diff --git a/mkspecs/features/meegotouch_coverage.prf b/mkspecs/features/meegotouch_coverage.prf new file mode 100644 index 00000000..3eb836f7 --- /dev/null +++ b/mkspecs/features/meegotouch_coverage.prf @@ -0,0 +1,10 @@ + +contains( CONFIG, coverage ) { + QMAKE_CXXFLAGS *= -ftest-coverage -fprofile-arcs + LIBS *= -lgcov + + QMAKE_CLEAN *= \ + *.gcda \ + *.gcno \ + *.gcov +} diff --git a/projects.pro b/projects.pro index a81cfd2e..1c91244d 100644 --- a/projects.pro +++ b/projects.pro @@ -12,6 +12,8 @@ TEMPLATE = subdirs } include(mkspecs/common.pri) +include(mkspecs/features/meegotouch_coverage.prf) + isEqual( IN_PWD, $${OUT_PWD} ) { IS_OUT_OF_SOURCE = 0 } else { |