Refactor skia_warnings_as_errors
Review URL: https://codereview.chromium.org/12963002
git-svn-id: http://skia.googlecode.com/svn/trunk@8330 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/jsoncpp.gyp b/gyp/jsoncpp.gyp
index 2549639..ab00db9 100644
--- a/gyp/jsoncpp.gyp
+++ b/gyp/jsoncpp.gyp
@@ -12,6 +12,9 @@
# and https://code.google.com/p/skia/source/detail?r=7115
{
+ 'variables': {
+ 'skia_warnings_as_errors': 0,
+ },
'targets': [
{
'target_name': 'jsoncpp',
@@ -47,29 +50,9 @@
],
},
'conditions': [
- [ 'skia_os == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS!': [
- '-Werror',
- ]
- },
- }],
- [ 'skia_os == "win"', {
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'WarnAsError': 'false',
- },
- },
- }],
[ 'skia_os == "android"', {
'cflags!': [
'-Wall',
- '-Werror',
- ],
- }],
- ['skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl"]', {
- 'cflags!': [
- '-Werror',
],
}],
],