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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 # This variable allows the user to customize the optimization level used | 156 # This variable allows the user to customize the optimization level used |
157 # by the compiler. The user should be aware that this has different | 157 # by the compiler. The user should be aware that this has different |
158 # meanings for different compilers and should exercise caution when | 158 # meanings for different compilers and should exercise caution when |
159 # overriding it. | 159 # overriding it. |
160 [ 'skia_os == "win"', { | 160 [ 'skia_os == "win"', { |
161 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', | 161 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', |
162 }, { | 162 }, { |
163 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', | 163 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', |
164 }], | 164 }], |
165 [ 'skia_os == "android"', { | |
166 # skia_libpng_static - instead of linking libpng with '-lpng' and | |
167 # including the headers from '/usr/include/png.h', compile and | |
168 # statically link the version of libpng in | |
169 # third_party/externals/libpng. | |
170 'skia_libpng_static%': '0', | |
171 }, { | |
172 'skia_libpng_static%': '1', | |
173 }], | |
174 [ 'skia_sanitizer', { | 165 [ 'skia_sanitizer', { |
175 'skia_clang_build': 1, | 166 'skia_clang_build': 1, |
176 'skia_keep_frame_pointer': 1, | 167 'skia_keep_frame_pointer': 1, |
177 }, { | 168 }, { |
178 'skia_clang_build%': 0, | 169 'skia_clang_build%': 0, |
179 'skia_keep_frame_pointer%': 0, | 170 'skia_keep_frame_pointer%': 0, |
180 }], | 171 }], |
181 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', { | 172 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', { |
182 'skia_pic%' : 1, | 173 'skia_pic%' : 1, |
183 }, { | 174 }, { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. | 229 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. |
239 #'-flto' # Enable link-time optimization. | 230 #'-flto' # Enable link-time optimization. |
240 ], | 231 ], |
241 | 232 |
242 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 233 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
243 # | 234 # |
244 'skia_src_path%': '../src', | 235 'skia_src_path%': '../src', |
245 'skia_include_path%': '../include', | 236 'skia_include_path%': '../include', |
246 }, | 237 }, |
247 } | 238 } |
OLD | NEW |