Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1496)

Unified Diff: gyp/common_variables.gypi

Issue 12963002: Refactor skia_warnings_as_errors (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use variable instead of disable_warnings_as_errors.gypi Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gyp/common_variables.gypi
===================================================================
--- gyp/common_variables.gypi (revision 8310)
+++ gyp/common_variables.gypi (working copy)
@@ -89,12 +89,19 @@
'skia_gpu%': 1,
'skia_osx_sdkroot%': '',
'skia_profile_enabled%': 0,
- # Note: This is currently only turned on for linux and android.
- # TODO: Turn on for Win and Mac as well.
- 'skia_warnings_as_errors%': 0,
'skia_win_debuggers_path%': '',
},
+ 'conditions': [
+ [ 'skia_os == "win" and skia_arch_width == 32 or '
+ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or '
+ 'skia_os == "mac" and skia_arch_width == 32', {
+ 'skia_warnings_as_errors%': 1,
+ }, {
+ 'skia_warnings_as_errors%': 0,
+ }],
+ ],
+
# Re-define all variables defined within the level-2 'variables' dict,
# so that siblings of the level-1 'variables' dict can see them.
'armv7%': '<(armv7)',
@@ -114,7 +121,6 @@
'skia_gpu%': '<(skia_gpu)',
'skia_osx_sdkroot%': '<(skia_osx_sdkroot)',
'skia_profile_enabled%': '<(skia_profile_enabled)',
- 'skia_warnings_as_errors%': '<(skia_warnings_as_errors)',
'skia_static_initializers%': '<(skia_static_initializers)',
'ios_sdk_version%': '6.0',
'skia_win_debuggers_path%': '<(skia_win_debuggers_path)',
« gyp/cityhash.gyp ('K') | « gyp/common_conditions.gypi ('k') | gyp/jsoncpp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698