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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 'skia_opencl%': 0, | 154 'skia_opencl%': 0, |
155 'skia_force_distance_field_text%': 0, | 155 'skia_force_distance_field_text%': 0, |
156 | 156 |
157 # These variables determine the default optimization level for different | 157 # These variables determine the default optimization level for different |
158 # compilers. | 158 # compilers. |
159 'skia_default_vs_optimization_level': 3, # full (/Ox) | 159 'skia_default_vs_optimization_level': 3, # full (/Ox) |
160 'skia_default_gcc_optimization_level': 3, # -O3 | 160 'skia_default_gcc_optimization_level': 3, # -O3 |
161 }, | 161 }, |
162 | 162 |
163 'conditions': [ | 163 'conditions': [ |
164 [ 'skia_android_framework', { | 164 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "win"]
' |
| 165 'and skia_android_framework == 0 or ' |
| 166 'skia_os == "mac" and skia_arch_width == 32', { |
| 167 'skia_warnings_as_errors%': 1, |
| 168 }, { |
165 'skia_warnings_as_errors%': 0, | 169 'skia_warnings_as_errors%': 0, |
166 }, { | |
167 'skia_warnings_as_errors%': 1, | |
168 }], | 170 }], |
169 | 171 |
170 # This variable allows the user to customize the optimization level used | 172 # This variable allows the user to customize the optimization level used |
171 # by the compiler. The user should be aware that this has different | 173 # by the compiler. The user should be aware that this has different |
172 # meanings for different compilers and should exercise caution when | 174 # meanings for different compilers and should exercise caution when |
173 # overriding it. | 175 # overriding it. |
174 [ 'skia_os == "win"', { | 176 [ 'skia_os == "win"', { |
175 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', | 177 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', |
176 }, { | 178 }, { |
177 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', | 179 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 'skia_moz2d%': 0, | 239 'skia_moz2d%': 0, |
238 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', | 240 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', |
239 'skia_egl%': '<(skia_egl)', | 241 'skia_egl%': '<(skia_egl)', |
240 | 242 |
241 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 243 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
242 # | 244 # |
243 'skia_src_path%': '../src', | 245 'skia_src_path%': '../src', |
244 'skia_include_path%': '../include', | 246 'skia_include_path%': '../include', |
245 }, | 247 }, |
246 } | 248 } |
OLD | NEW |