aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/common_conditions.gypi
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-08 21:46:05 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-08 21:46:05 +0000
commit57585fa2c4f59fec15e9059cdf88bdc078123a4e (patch)
tree840550b1c131e101dbb330305c9026035af01792 /gyp/common_conditions.gypi
parent1d03ba98d3408201bc958ed1afab2afed398ef20 (diff)
Turn off WarnAsError when building ANGLE projects on windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@7096 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp/common_conditions.gypi')
-rw-r--r--gyp/common_conditions.gypi28
1 files changed, 23 insertions, 5 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 51865bf2d1..0e13333682 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -96,12 +96,30 @@
},
}],
['skia_arch_width == 32', {
- 'msvs_configuration_platform': 'Win32',
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'WarnAsError': 'true',
- },
+ # This gypi file will be included directly into the gyp(i) files in the angle repo by
+ # our gyp_skia script. We don't want force WarnAsError on angle. So angle.gyp defines
+ # skia_building_angle=1 and here we select whether to enable WarnAsError based on that
+ # var's value. Here it defaults to 0.
+ 'variables' : {
+ 'skia_building_angle%': 0,
},
+ 'conditions' : [
+ ['skia_building_angle', {
+ 'msvs_configuration_platform': 'Win32',
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ },
+ },
+ },{ # not angle
+ 'msvs_configuration_platform': 'Win32',
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'true',
+ },
+ },
+ }],
+ ],
}],
],
},