| Index: build/common.gypi
|
| ===================================================================
|
| --- build/common.gypi (revision 19085)
|
| +++ build/common.gypi (working copy)
|
| @@ -66,7 +66,7 @@
|
| 'toolkit_views%': 0,
|
|
|
| 'linux2%': 0,
|
| -
|
| +
|
| 'chrome_personalization%': 0,
|
| },
|
| 'target_defaults': {
|
| @@ -113,10 +113,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 happy
|
| + 'DebugInformationFormat': '1',
|
| + 'AdditionalOptions': '/Yd',
|
| + }
|
| + }
|
| + }], # OS==win
|
| + ], # conditions for coverage
|
| + }], # coverage!=0
|
| + ], # conditions for 'target_defaults'
|
| 'default_configuration': 'Debug',
|
| 'configurations': {
|
| # VCLinkerTool LinkIncremental values below:
|
|
|