summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r--chrome/chrome.gyp27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 43b1412..615ba24 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -2805,5 +2805,32 @@
},
]}, # 'targets'
], # OS=="win"
+ # TODO(jrg): add in Windows code coverage targets.
+ # Also test on Linux.
+ ['coverage!=0 and OS=="mac"',
+ { 'targets': [
+ {
+ 'target_name': 'coverage',
+ # do NOT place this in the 'all' list; most won't want it.
+ # In gyp, booleans are 0/1 not True/False.
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_unittests',
+ ],
+ 'actions': [
+ {
+ 'inputs': [],
+ 'outputs': [],
+ 'action_name': 'coverage',
+ 'action': [ 'python',
+ '../tools/code_coverage/coverage_posix.py',
+ '--directory',
+ '<(PRODUCT_DIR)' ],
+ },
+ ], # 'actions'
+ },
+ ]
+ }],
], # 'conditions'
}