| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 'skia_mesa%': 0, | 124 'skia_mesa%': 0, |
| 125 'skia_gpu_extra_dependency_path%': '', | 125 'skia_gpu_extra_dependency_path%': '', |
| 126 'skia_stroke_path_rendering%': 0, | 126 'skia_stroke_path_rendering%': 0, |
| 127 'skia_android_path_rendering%': 0, | 127 'skia_android_path_rendering%': 0, |
| 128 'skia_resource_cache_mb_limit%': 0, | 128 'skia_resource_cache_mb_limit%': 0, |
| 129 'skia_resource_cache_count_limit%': 0, | 129 'skia_resource_cache_count_limit%': 0, |
| 130 'skia_angle%': 0, | 130 'skia_angle%': 0, |
| 131 'skia_gdi%': 0, | 131 'skia_gdi%': 0, |
| 132 'skia_gpu%': 1, | 132 'skia_gpu%': 1, |
| 133 'skia_osx_deployment_target%': '', | 133 'skia_osx_deployment_target%': '', |
| 134 'skia_pdf%': 1, |
| 134 'skia_profile_enabled%': 0, | 135 'skia_profile_enabled%': 0, |
| 135 'skia_win_debuggers_path%': '', | 136 'skia_win_debuggers_path%': '', |
| 136 'skia_shared_lib%': 0, | 137 'skia_shared_lib%': 0, |
| 137 'skia_opencl%': 0, | 138 'skia_opencl%': 0, |
| 138 'skia_force_distance_field_text%': 0, | 139 'skia_force_distance_field_text%': 0, |
| 139 | 140 |
| 140 # These variables determine the default optimization level for different | 141 # These variables determine the default optimization level for different |
| 141 # compilers. | 142 # compilers. |
| 142 'skia_default_vs_optimization_level': 3, # full (/Ox) | 143 'skia_default_vs_optimization_level': 3, # full (/Ox) |
| 143 'skia_default_gcc_optimization_level': 3, # -O3 | 144 'skia_default_gcc_optimization_level': 3, # -O3 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', | 202 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', |
| 202 'skia_angle%': '<(skia_angle)', | 203 'skia_angle%': '<(skia_angle)', |
| 203 'skia_arch_type%': '<(skia_arch_type)', | 204 'skia_arch_type%': '<(skia_arch_type)', |
| 204 'skia_chrome_utils%': '<(skia_chrome_utils)', | 205 'skia_chrome_utils%': '<(skia_chrome_utils)', |
| 205 'skia_gdi%': '<(skia_gdi)', | 206 'skia_gdi%': '<(skia_gdi)', |
| 206 'skia_gpu%': '<(skia_gpu)', | 207 'skia_gpu%': '<(skia_gpu)', |
| 207 'skia_win_exceptions%': 0, | 208 'skia_win_exceptions%': 0, |
| 208 'skia_win_ltcg%': 1, | 209 'skia_win_ltcg%': 1, |
| 209 'sknx_no_simd%': 0, | 210 'sknx_no_simd%': 0, |
| 210 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', | 211 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', |
| 212 'skia_pdf%': '<(skia_pdf)', |
| 211 'skia_profile_enabled%': '<(skia_profile_enabled)', | 213 'skia_profile_enabled%': '<(skia_profile_enabled)', |
| 212 'skia_shared_lib%': '<(skia_shared_lib)', | 214 'skia_shared_lib%': '<(skia_shared_lib)', |
| 213 'skia_opencl%': '<(skia_opencl)', | 215 'skia_opencl%': '<(skia_opencl)', |
| 214 'skia_force_distance_field_text%': '<(skia_force_distance_field_text)', | 216 'skia_force_distance_field_text%': '<(skia_force_distance_field_text)', |
| 215 'skia_static_initializers%': '<(skia_static_initializers)', | 217 'skia_static_initializers%': '<(skia_static_initializers)', |
| 216 'ios_sdk_version%': '6.0', | 218 'ios_sdk_version%': '6.0', |
| 217 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 219 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
| 218 'skia_disable_inlining%': 0, | 220 'skia_disable_inlining%': 0, |
| 219 'skia_moz2d%': 0, | 221 'skia_moz2d%': 0, |
| 220 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', | 222 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', |
| 221 'skia_egl%': '<(skia_egl)', | 223 'skia_egl%': '<(skia_egl)', |
| 222 'skia_fast%': 0, | 224 'skia_fast%': 0, |
| 223 'skia_fast_flags': [ | 225 'skia_fast_flags': [ |
| 224 '-O3', # Even for Debug builds. | 226 '-O3', # Even for Debug builds. |
| 225 '-march=native', # Use all features of and optimize for THIS mac
hine. | 227 '-march=native', # Use all features of and optimize for THIS mac
hine. |
| 226 '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts
a push/pop. | 228 '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts
a push/pop. |
| 227 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. | 229 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. |
| 228 #'-flto' # Enable link-time optimization. | 230 #'-flto' # Enable link-time optimization. |
| 229 ], | 231 ], |
| 230 | 232 |
| 231 # 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) |
| 232 # | 234 # |
| 233 'skia_src_path%': '../src', | 235 'skia_src_path%': '../src', |
| 234 'skia_include_path%': '../include', | 236 'skia_include_path%': '../include', |
| 235 }, | 237 }, |
| 236 } | 238 } |
| OLD | NEW |