| 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 }], | |
| 177 [ 'skia_sanitizer', { | 168 [ 'skia_sanitizer', { |
| 178 'skia_clang_build': 1, | 169 'skia_clang_build': 1, |
| 179 'skia_keep_frame_pointer': 1, | 170 'skia_keep_frame_pointer': 1, |
| 180 }, { | 171 }, { |
| 181 'skia_clang_build%': 0, | 172 'skia_clang_build%': 0, |
| 182 'skia_keep_frame_pointer%': 0, | 173 'skia_keep_frame_pointer%': 0, |
| 183 }], | 174 }], |
| 184 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', { | 175 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', { |
| 185 'skia_pic%' : 1, | 176 'skia_pic%' : 1, |
| 186 }, { | 177 }, { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. | 232 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. |
| 242 #'-flto' # Enable link-time optimization. | 233 #'-flto' # Enable link-time optimization. |
| 243 ], | 234 ], |
| 244 | 235 |
| 245 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 236 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 246 # | 237 # |
| 247 'skia_src_path%': '../src', | 238 'skia_src_path%': '../src', |
| 248 'skia_include_path%': '../include', | 239 'skia_include_path%': '../include', |
| 249 }, | 240 }, |
| 250 } | 241 } |
| OLD | NEW |