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