| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 'skia_gdi%': 0, | 138 'skia_gdi%': 0, |
| 139 'skia_gpu%': 1, | 139 'skia_gpu%': 1, |
| 140 'skia_osx_deployment_target%': '', | 140 'skia_osx_deployment_target%': '', |
| 141 'skia_pdf%': 1, | 141 'skia_pdf%': 1, |
| 142 'skia_profile_enabled%': 0, | 142 'skia_profile_enabled%': 0, |
| 143 'skia_vulkan%': 0, | 143 'skia_vulkan%': 0, |
| 144 'skia_win_debuggers_path%': '', | 144 'skia_win_debuggers_path%': '', |
| 145 'skia_shared_lib%': 0, | 145 'skia_shared_lib%': 0, |
| 146 'skia_opencl%': 0, | 146 'skia_opencl%': 0, |
| 147 'skia_force_distance_field_text%': 0, | 147 'skia_force_distance_field_text%': 0, |
| 148 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HE
ADLESS\', 0)")', |
| 148 | 149 |
| 149 # These variables determine the default optimization level for different | 150 # These variables determine the default optimization level for different |
| 150 # compilers. | 151 # compilers. |
| 151 'skia_default_vs_optimization_level': 3, # full (/Ox) | 152 'skia_default_vs_optimization_level': 3, # full (/Ox) |
| 152 'skia_default_gcc_optimization_level': 3, # -O3 | 153 'skia_default_gcc_optimization_level': 3, # -O3 |
| 153 }, | 154 }, |
| 154 | 155 |
| 155 'conditions': [ | 156 'conditions': [ |
| 156 [ 'skia_os in ["mac", "linux", "freebsd", "openbsd", "solaris", "android",
"win"] ' | 157 [ 'skia_os in ["mac", "linux", "freebsd", "openbsd", "solaris", "android",
"win"] ' |
| 157 'and skia_android_framework == 0', { | 158 'and skia_android_framework == 0', { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', | 216 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', |
| 216 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', | 217 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', |
| 217 'skia_angle%': '<(skia_angle)', | 218 'skia_angle%': '<(skia_angle)', |
| 218 'skia_arch_type%': '<(skia_arch_type)', | 219 'skia_arch_type%': '<(skia_arch_type)', |
| 219 'skia_chrome_utils%': '<(skia_chrome_utils)', | 220 'skia_chrome_utils%': '<(skia_chrome_utils)', |
| 220 'skia_command_buffer%': '<(skia_command_buffer)', | 221 'skia_command_buffer%': '<(skia_command_buffer)', |
| 221 'skia_gdi%': '<(skia_gdi)', | 222 'skia_gdi%': '<(skia_gdi)', |
| 222 'skia_gpu%': '<(skia_gpu)', | 223 'skia_gpu%': '<(skia_gpu)', |
| 223 'skia_vulkan%': '<(skia_vulkan)', | 224 'skia_vulkan%': '<(skia_vulkan)', |
| 224 'skia_win_exceptions%': 0, | 225 'skia_win_exceptions%': 0, |
| 225 'skia_win_ltcg%': 1, | 226 'skia_win_ltcg%': '<(skia_is_bot)', |
| 226 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', | 227 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', |
| 227 'skia_pdf%': '<(skia_pdf)', | 228 'skia_pdf%': '<(skia_pdf)', |
| 228 'skia_pdf_generate_pdfa%': 0, # emit larger PDF/A-2b file | 229 'skia_pdf_generate_pdfa%': 0, # emit larger PDF/A-2b file |
| 229 'skia_profile_enabled%': '<(skia_profile_enabled)', | 230 'skia_profile_enabled%': '<(skia_profile_enabled)', |
| 230 'skia_shared_lib%': '<(skia_shared_lib)', | 231 'skia_shared_lib%': '<(skia_shared_lib)', |
| 231 'skia_opencl%': '<(skia_opencl)', | 232 'skia_opencl%': '<(skia_opencl)', |
| 232 'skia_force_distance_field_text%': '<(skia_force_distance_field_text)', | 233 'skia_force_distance_field_text%': '<(skia_force_distance_field_text)', |
| 233 'skia_static_initializers%': '<(skia_static_initializers)', | 234 'skia_static_initializers%': '<(skia_static_initializers)', |
| 234 'ios_sdk_version%': '6.0', | 235 'ios_sdk_version%': '6.0', |
| 235 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 236 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
| 236 'skia_disable_inlining%': 0, | 237 'skia_disable_inlining%': 0, |
| 237 'skia_moz2d%': 0, | 238 'skia_moz2d%': 0, |
| 238 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', | 239 'skia_is_bot%': '<(skia_is_bot)', |
| 239 'skia_egl%': '<(skia_egl)', | 240 'skia_egl%': '<(skia_egl)', |
| 240 'skia_fast%': 0, | 241 'skia_fast%': 0, |
| 241 'skia_fast_flags': [ | 242 'skia_fast_flags': [ |
| 242 '-O3', # Even for Debug builds. | 243 '-O3', # Even for Debug builds. |
| 243 '-march=native', # Use all features of and optimize for THIS mac
hine. | 244 '-march=native', # Use all features of and optimize for THIS mac
hine. |
| 244 '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts
a push/pop. | 245 '-fomit-frame-pointer', # Sometimes an extra register is nice, and cuts
a push/pop. |
| 245 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. | 246 '-ffast-math', # Optimize float math even when it breaks IEEE
compliance. |
| 246 #'-flto' # Enable link-time optimization. | 247 #'-flto' # Enable link-time optimization. |
| 247 ], | 248 ], |
| 248 | 249 |
| 249 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 250 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 250 # | 251 # |
| 251 'skia_src_path%': '../src', | 252 'skia_src_path%': '../src', |
| 252 'skia_include_path%': '../include', | 253 'skia_include_path%': '../include', |
| 253 }, | 254 }, |
| 254 } | 255 } |
| OLD | NEW |