summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 18:20:53 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 18:20:53 +0000
commite8f6ff442e9c2eb59332990093ec1af65b2c1991 (patch)
tree78f5be88b569c8043311627f98280e602a2c614a /build/common.gypi
parentade4397a3af8a2d4dd8dbc60af01b19ace85d5c9 (diff)
downloadchromium_src-e8f6ff442e9c2eb59332990093ec1af65b2c1991.zip
chromium_src-e8f6ff442e9c2eb59332990093ec1af65b2c1991.tar.gz
chromium_src-e8f6ff442e9c2eb59332990093ec1af65b2c1991.tar.bz2
Beginning of code coverage on Windows.
Review URL: http://codereview.chromium.org/155123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi20
1 files changed, 16 insertions, 4 deletions
diff --git a/build/common.gypi b/build/common.gypi
index ed5992f..302a531 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -128,10 +128,22 @@
'-fprofile-arcs' ],
'link_settings': { 'libraries': [ '-lgcov' ] },
}],
- ]},
- # TODO(jrg): options for code coverage on Windows
- ],
- ],
+ # Finally, for Windows, we simply turn on profiling.
+ ['OS=="win"', {
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'Profile': 'true',
+ },
+ 'VCCLCompilerTool': {
+ # /Z7, not /Zi, so coverage is happyb
+ 'DebugInformationFormat': '1',
+ 'AdditionalOptions': '/Yd',
+ }
+ }
+ }], # OS==win
+ ], # conditions for coverage
+ }], # coverage!=0
+ ], # conditions for 'target_defaults'
'default_configuration': 'Debug',
'configurations': {
# VCLinkerTool LinkIncremental values below: