Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 [ 'skia_os == "android"', { | 86 [ 'skia_os == "android"', { |
| 87 'skia_static_initializers%': 0, | 87 'skia_static_initializers%': 0, |
| 88 }, { | 88 }, { |
| 89 'skia_static_initializers%': 1, | 89 'skia_static_initializers%': 1, |
| 90 }], | 90 }], |
| 91 [ 'skia_os == "ios"', { | 91 [ 'skia_os == "ios"', { |
| 92 'skia_arch_type%': 'arm', | 92 'skia_arch_type%': 'arm', |
| 93 'arm_version%': 7, | 93 'arm_version%': 7, |
| 94 'arm_neon%': 0, # neon asm files known not to work with the ios build | 94 'arm_neon%': 0, # neon asm files known not to work with the ios build |
| 95 },{ # skia_os is not ios | 95 },{ # skia_os is not ios |
| 96 'skia_arch_type%': 'x86', | 96 'conditions': [ |
| 97 [ 'skia_target_arch == "mips"', { | |
| 98 'skia_arch_type%': 'mips', | |
|
djsollen
2014/05/29 17:01:08
I've just submitted a CL to clean this up a little
| |
| 99 'mips_dsp%': 1, | |
| 100 'mips_dspr2%': 1, | |
|
djsollen
2014/05/29 17:01:08
do you expect all mips builds to support _dsp and
| |
| 101 }, { | |
| 102 'skia_arch_type%': 'x86', | |
| 103 }], | |
| 104 ], | |
| 97 'arm_version%': 0, | 105 'arm_version%': 0, |
| 98 'arm_neon%': 0, | 106 'arm_neon%': 0, |
| 99 }], | 107 }], |
| 100 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', | 108 [ 'skia_os in ["android", "nacl"] and not skia_android_framework', |
| 101 # skia_freetype_static - on OS variants that normally would | 109 # skia_freetype_static - on OS variants that normally would |
| 102 # dynamically link the system FreeType library, don't do | 110 # dynamically link the system FreeType library, don't do |
| 103 # that; instead statically link to the version in | 111 # that; instead statically link to the version in |
| 104 # third_party/freetype and third_party/externals/freetype. | 112 # third_party/freetype and third_party/externals/freetype. |
| 105 { | 113 { |
| 106 'skia_freetype_static%': '1', | 114 'skia_freetype_static%': '1', |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 'skia_clang_build%': 0, | 190 'skia_clang_build%': 0, |
| 183 'skia_keep_frame_pointer%': 0, | 191 'skia_keep_frame_pointer%': 0, |
| 184 }], | 192 }], |
| 185 ], | 193 ], |
| 186 | 194 |
| 187 # Re-define all variables defined within the level-2 'variables' dict, | 195 # Re-define all variables defined within the level-2 'variables' dict, |
| 188 # so that siblings of the level-1 'variables' dict can see them. | 196 # so that siblings of the level-1 'variables' dict can see them. |
| 189 'arm_version%': '<(arm_version)', | 197 'arm_version%': '<(arm_version)', |
| 190 'arm_neon%': '<(arm_neon)', | 198 'arm_neon%': '<(arm_neon)', |
| 191 'arm_neon_optional%': 0, | 199 'arm_neon_optional%': 0, |
| 200 'mips_dsp%': '<(mips_dsp)', | |
| 201 'mips_dspr2%': '<(mips_dspr2)', | |
| 202 'mips_dsp_optional%': 0, | |
| 203 'mips_dspr2_optional%': 0, | |
| 192 'skia_os%': '<(skia_os)', | 204 'skia_os%': '<(skia_os)', |
| 193 'os_posix%': '<(os_posix)', | 205 'os_posix%': '<(os_posix)', |
| 194 | 206 |
| 195 'skia_freetype_static%': '<(skia_freetype_static)', | 207 'skia_freetype_static%': '<(skia_freetype_static)', |
| 196 'skia_giflib_static%': '<(skia_giflib_static)', | 208 'skia_giflib_static%': '<(skia_giflib_static)', |
| 197 'skia_libpng_static%': '<(skia_libpng_static)', | 209 'skia_libpng_static%': '<(skia_libpng_static)', |
| 198 'skia_zlib_static%': '<(skia_zlib_static)', | 210 'skia_zlib_static%': '<(skia_zlib_static)', |
| 199 'skia_no_fontconfig%': '<(skia_no_fontconfig)', | 211 'skia_no_fontconfig%': '<(skia_no_fontconfig)', |
| 200 'skia_sanitizer%': '<(skia_sanitizer)', | 212 'skia_sanitizer%': '<(skia_sanitizer)', |
| 201 'skia_scalar%': '<(skia_scalar)', | 213 'skia_scalar%': '<(skia_scalar)', |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 225 'skia_run_pdfviewer_in_gm%': 0, | 237 'skia_run_pdfviewer_in_gm%': 0, |
| 226 'skia_disable_inlining%': 0, | 238 'skia_disable_inlining%': 0, |
| 227 'skia_moz2d%': 0, | 239 'skia_moz2d%': 0, |
| 228 | 240 |
| 229 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 241 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 230 # | 242 # |
| 231 'skia_src_path%': '../src', | 243 'skia_src_path%': '../src', |
| 232 'skia_include_path%': '../include', | 244 'skia_include_path%': '../include', |
| 233 }, | 245 }, |
| 234 } | 246 } |
| OLD | NEW |