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