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

Unified Diff: gyp/common_variables.gypi

Issue 12963002: Refactor skia_warnings_as_errors (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: 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
« no previous file with comments | « gyp/common_conditions.gypi ('k') | gyp/jsoncpp.gyp » ('j') | gyp/jsoncpp.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/common_variables.gypi
===================================================================
--- gyp/common_variables.gypi (revision 8147)
+++ gyp/common_variables.gypi (working copy)
@@ -89,12 +89,27 @@
'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 and not skia_angle', {
+ 'skia_warnings_as_errors%': 1,
+ }],
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
djsollen 2013/03/20 17:43:29 why not put android and ios in this list?
borenet 2013/03/20 19:19:34 Combined into one condition. It was necessary for
+ 'skia_warnings_as_errors%': 1,
+ }],
+ [ 'skia_os == "android"', {
+ 'skia_warnings_as_errors%': 1,
+ }],
+ [ 'skia_os == "mac" and skia_arch_width == 32', {
+ 'skia_warnings_as_errors%': 1,
+ }],
+ [ 'skia_os == "ios"', {
+ 'skia_warnings_as_errors%': 1,
+ }],
+ ],
+
# 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)',
« no previous file with comments | « gyp/common_conditions.gypi ('k') | gyp/jsoncpp.gyp » ('j') | gyp/jsoncpp.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698