summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2018-08-29 22:18:42 +0200
committerRobert Loehning <robert.loehning@qt.io>2018-10-31 15:08:59 +0000
commitcc9645f11b46aaad36658d62d38a5e44a5ba5ae5 (patch)
treea6e7b3b9278403624768e2cb55f89f73825446b3 /configure.pri
parent0330b967f20bc265b9799418ce8e0b6faf929a62 (diff)
configure: Add switch for adding coverage info
Change-Id: If6f3d4f29233206ef911f48e63872d28bf7b8e71 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 64ed6b9ed8..3f3d2da571 100644
--- a/configure.pri
+++ b/configure.pri
@@ -58,6 +58,21 @@ defineTest(qtConfCommandline_sanitize) {
}
}
+defineTest(qtConfCommandline_coverage) {
+ arg = $${1}
+ val = $${2}
+ isEmpty(val): val = $$qtConfGetNextCommandlineArg()
+ !contains(val, "^-.*"):!isEmpty(val) {
+ equals(val, "trace-pc-guard") {
+ qtConfCommandlineSetInput("coverage_trace_pc_guard", "yes")
+ } else {
+ qtConfAddError("Invalid argument $$val to command line parameter $$arg")
+ }
+ } else {
+ qtConfAddError("Missing argument to command line parameter $$arg")
+ }
+}
+
# callbacks
defineReplace(qtConfFunc_crossCompile) {