OLD | NEW |
---|---|
1 # Copyright 2012 The Android Open Source Project | 1 # Copyright 2012 The Android Open Source Project |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 { | 6 { |
7 # Get ready for the ugly... | 7 # Get ready for the ugly... |
8 # | 8 # |
9 # - We have to nest our variables dictionaries multiple levels deep, so that | 9 # - We have to nest our variables dictionaries multiple levels deep, so that |
10 # this and other gyp files can rely on previously-set variable values in | 10 # this and other gyp files can rely on previously-set variable values in |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 'skia_mesa%': 0, | 82 'skia_mesa%': 0, |
83 'skia_nv_path_rendering%': 0, | 83 'skia_nv_path_rendering%': 0, |
84 'skia_stroke_path_rendering%': 0, | 84 'skia_stroke_path_rendering%': 0, |
85 'skia_android_path_rendering%': 0, | 85 'skia_android_path_rendering%': 0, |
86 'skia_texture_cache_mb_limit%': 0, | 86 'skia_texture_cache_mb_limit%': 0, |
87 'skia_angle%': 0, | 87 'skia_angle%': 0, |
88 'skia_directwrite%': 0, | 88 'skia_directwrite%': 0, |
89 'skia_gpu%': 1, | 89 'skia_gpu%': 1, |
90 'skia_osx_sdkroot%': '', | 90 'skia_osx_sdkroot%': '', |
91 'skia_profile_enabled%': 0, | 91 'skia_profile_enabled%': 0, |
92 # Note: This is currently only turned on for linux and android. | |
93 # TODO: Turn on for Win and Mac as well. | |
94 'skia_warnings_as_errors%': 0, | |
95 'skia_win_debuggers_path%': '', | 92 'skia_win_debuggers_path%': '', |
96 }, | 93 }, |
97 | 94 |
95 'conditions': [ | |
96 [ 'skia_os == "win" and skia_arch_width == 32 and not skia_angle', { | |
97 'skia_warnings_as_errors%': 1, | |
98 }], | |
99 [ '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
| |
100 'skia_warnings_as_errors%': 1, | |
101 }], | |
102 [ 'skia_os == "android"', { | |
103 'skia_warnings_as_errors%': 1, | |
104 }], | |
105 [ 'skia_os == "mac" and skia_arch_width == 32', { | |
106 'skia_warnings_as_errors%': 1, | |
107 }], | |
108 [ 'skia_os == "ios"', { | |
109 'skia_warnings_as_errors%': 1, | |
110 }], | |
111 ], | |
112 | |
98 # Re-define all variables defined within the level-2 'variables' dict, | 113 # Re-define all variables defined within the level-2 'variables' dict, |
99 # so that siblings of the level-1 'variables' dict can see them. | 114 # so that siblings of the level-1 'variables' dict can see them. |
100 'armv7%': '<(armv7)', | 115 'armv7%': '<(armv7)', |
101 'arm_neon%': '<(arm_neon)', | 116 'arm_neon%': '<(arm_neon)', |
102 'skia_os%': '<(skia_os)', | 117 'skia_os%': '<(skia_os)', |
103 'os_posix%': '<(os_posix)', | 118 'os_posix%': '<(os_posix)', |
104 'skia_scalar%': '<(skia_scalar)', | 119 'skia_scalar%': '<(skia_scalar)', |
105 'skia_mesa%': '<(skia_mesa)', | 120 'skia_mesa%': '<(skia_mesa)', |
106 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', | 121 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', |
107 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', | 122 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
(...skipping 15 matching lines...) Expand all Loading... | |
123 # | 138 # |
124 'skia_src_path%': '../src', | 139 'skia_src_path%': '../src', |
125 'skia_include_path%': '../include', | 140 'skia_include_path%': '../include', |
126 }, | 141 }, |
127 } | 142 } |
128 # Local Variables: | 143 # Local Variables: |
129 # tab-width:2 | 144 # tab-width:2 |
130 # indent-tabs-mode:nil | 145 # indent-tabs-mode:nil |
131 # End: | 146 # End: |
132 # vim: set expandtab tabstop=2 shiftwidth=2: | 147 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |