| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 'skia_arch_type%': 'arm', | 71 'skia_arch_type%': 'arm', |
| 72 'arm_version%': 7, | 72 'arm_version%': 7, |
| 73 'arm_neon%': 0, # neon asm files known not to work with the ios build | 73 'arm_neon%': 0, # neon asm files known not to work with the ios build |
| 74 },{ # skia_os is not ios | 74 },{ # skia_os is not ios |
| 75 'skia_arch_type%': 'x86', | 75 'skia_arch_type%': 'x86', |
| 76 'arm_version%': 0, | 76 'arm_version%': 0, |
| 77 'arm_neon%': 0, | 77 'arm_neon%': 0, |
| 78 }], | 78 }], |
| 79 ], | 79 ], |
| 80 | 80 |
| 81 'skia_asan_build%': 0, | 81 'skia_sanitizer%': '', |
| 82 'skia_tsan_build%': 0, | |
| 83 'skia_scalar%': 'float', | 82 'skia_scalar%': 'float', |
| 84 'skia_mesa%': 0, | 83 'skia_mesa%': 0, |
| 85 'skia_nv_path_rendering%': 0, | 84 'skia_nv_path_rendering%': 0, |
| 86 'skia_stroke_path_rendering%': 0, | 85 'skia_stroke_path_rendering%': 0, |
| 87 'skia_android_path_rendering%': 0, | 86 'skia_android_path_rendering%': 0, |
| 88 'skia_texture_cache_mb_limit%': 0, | 87 'skia_texture_cache_mb_limit%': 0, |
| 89 'skia_angle%': 0, | 88 'skia_angle%': 0, |
| 90 'skia_directwrite%': 0, | 89 'skia_directwrite%': 0, |
| 91 'skia_gpu%': 1, | 90 'skia_gpu%': 1, |
| 92 'skia_osx_sdkroot%': '', | 91 'skia_osx_sdkroot%': '', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 112 | 111 |
| 113 # This variable allows the user to customize the optimization level used | 112 # This variable allows the user to customize the optimization level used |
| 114 # by the compiler. The user should be aware that this has different | 113 # by the compiler. The user should be aware that this has different |
| 115 # meanings for different compilers and should exercise caution when | 114 # meanings for different compilers and should exercise caution when |
| 116 # overriding it. | 115 # overriding it. |
| 117 [ 'skia_os == "win"', { | 116 [ 'skia_os == "win"', { |
| 118 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', | 117 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve
l)', |
| 119 }, { | 118 }, { |
| 120 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', | 119 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev
el)', |
| 121 }], | 120 }], |
| 122 [ 'skia_asan_build or skia_tsan_build', { | 121 [ 'skia_sanitizer', { |
| 123 'skia_clang_build': 1, | 122 'skia_clang_build': 1, |
| 124 }, { | 123 }, { |
| 125 'skia_clang_build%': 0, | 124 'skia_clang_build%': 0, |
| 126 }], | 125 }], |
| 127 ], | 126 ], |
| 128 | 127 |
| 129 # Re-define all variables defined within the level-2 'variables' dict, | 128 # Re-define all variables defined within the level-2 'variables' dict, |
| 130 # so that siblings of the level-1 'variables' dict can see them. | 129 # so that siblings of the level-1 'variables' dict can see them. |
| 131 'arm_version%': '<(arm_version)', | 130 'arm_version%': '<(arm_version)', |
| 132 'arm_neon%': '<(arm_neon)', | 131 'arm_neon%': '<(arm_neon)', |
| 133 'arm_neon_optional%': 0, | 132 'arm_neon_optional%': 0, |
| 134 'skia_os%': '<(skia_os)', | 133 'skia_os%': '<(skia_os)', |
| 135 'os_posix%': '<(os_posix)', | 134 'os_posix%': '<(os_posix)', |
| 136 'skia_asan_build%': '<(skia_asan_build)', | 135 'skia_sanitizer%': '<(skia_sanitizer)', |
| 137 'skia_tsan_build%': '<(skia_tsan_build)', | |
| 138 'skia_scalar%': '<(skia_scalar)', | 136 'skia_scalar%': '<(skia_scalar)', |
| 139 'skia_mesa%': '<(skia_mesa)', | 137 'skia_mesa%': '<(skia_mesa)', |
| 140 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', | 138 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', |
| 141 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', | 139 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
| 142 'skia_android_path_rendering%': '<(skia_android_path_rendering)', | 140 'skia_android_path_rendering%': '<(skia_android_path_rendering)', |
| 143 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)', | 141 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)', |
| 144 'skia_angle%': '<(skia_angle)', | 142 'skia_angle%': '<(skia_angle)', |
| 145 'skia_arch_width%': '<(skia_arch_width)', | 143 'skia_arch_width%': '<(skia_arch_width)', |
| 146 'skia_arch_type%': '<(skia_arch_type)', | 144 'skia_arch_type%': '<(skia_arch_type)', |
| 147 'skia_directwrite%': '<(skia_directwrite)', | 145 'skia_directwrite%': '<(skia_directwrite)', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 159 # | 157 # |
| 160 'skia_src_path%': '../src', | 158 'skia_src_path%': '../src', |
| 161 'skia_include_path%': '../include', | 159 'skia_include_path%': '../include', |
| 162 }, | 160 }, |
| 163 } | 161 } |
| 164 # Local Variables: | 162 # Local Variables: |
| 165 # tab-width:2 | 163 # tab-width:2 |
| 166 # indent-tabs-mode:nil | 164 # indent-tabs-mode:nil |
| 167 # End: | 165 # End: |
| 168 # vim: set expandtab tabstop=2 shiftwidth=2: | 166 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |