OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
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 declare_args() { | 6 declare_args() { |
7 skia_enable_tools = !is_fuchsia && !is_component_build | 7 skia_enable_tools = !is_fuchsia && !is_component_build |
8 | 8 |
9 skia_use_expat = true | 9 skia_use_expat = true |
10 skia_use_giflib = !is_fuchsia | 10 skia_use_giflib = !is_fuchsia |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 [ | 154 [ |
155 "sources", | 155 "sources", |
156 "cflags", | 156 "cflags", |
157 ]) | 157 ]) |
158 } | 158 } |
159 } | 159 } |
160 } | 160 } |
161 | 161 |
162 is_x86 = current_cpu == "x64" || current_cpu == "x86" | 162 is_x86 = current_cpu == "x64" || current_cpu == "x86" |
163 | 163 |
| 164 opts("armv7") { |
| 165 enabled = current_cpu == "arm" |
| 166 sources = opts_gypi.armv7_sources |
| 167 cflags = [] |
| 168 } |
| 169 |
| 170 opts("neon") { |
| 171 enabled = current_cpu == "arm" |
| 172 sources = opts_gypi.neon_sources |
| 173 cflags = [ "-mfpu=neon" ] |
| 174 } |
| 175 |
| 176 opts("arm64") { |
| 177 enabled = current_cpu == "arm64" |
| 178 sources = opts_gypi.arm64_sources |
| 179 cflags = [] |
| 180 } |
| 181 |
| 182 opts("crc32") { |
| 183 enabled = current_cpu == "arm64" |
| 184 sources = opts_gypi.crc32_sources |
| 185 cflags = [ "-march=armv8-a+crc" ] |
| 186 } |
| 187 |
164 opts("none") { | 188 opts("none") { |
165 enabled = !is_x86 | 189 enabled = !is_x86 && current_cpu != "arm" && current_cpu != "arm64" |
166 sources = opts_gypi.none_sources | 190 sources = opts_gypi.none_sources |
167 cflags = [] | 191 cflags = [] |
168 } | 192 } |
169 | 193 |
170 opts("sse2") { | 194 opts("sse2") { |
171 enabled = is_x86 | 195 enabled = is_x86 |
172 sources = opts_gypi.sse2_sources | 196 sources = opts_gypi.sse2_sources |
173 cflags = [ "-msse2" ] | 197 cflags = [ "-msse2" ] |
174 } | 198 } |
175 | 199 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 "src/xml/SkXMLParser.cpp", | 332 "src/xml/SkXMLParser.cpp", |
309 "src/xml/SkXMLWriter.cpp", | 333 "src/xml/SkXMLWriter.cpp", |
310 ] | 334 ] |
311 } | 335 } |
312 | 336 |
313 component("skia") { | 337 component("skia") { |
314 public_configs = [ ":skia_public" ] | 338 public_configs = [ ":skia_public" ] |
315 configs += skia_library_configs | 339 configs += skia_library_configs |
316 | 340 |
317 deps = [ | 341 deps = [ |
| 342 ":arm64", |
| 343 ":armv7", |
318 ":avx", | 344 ":avx", |
| 345 ":crc32", |
319 ":gif", | 346 ":gif", |
320 ":jpeg", | 347 ":jpeg", |
| 348 ":neon", |
321 ":none", | 349 ":none", |
322 ":pdf", | 350 ":pdf", |
323 ":png", | 351 ":png", |
324 ":sse2", | 352 ":sse2", |
325 ":sse41", | 353 ":sse41", |
326 ":sse42", | 354 ":sse42", |
327 ":ssse3", | 355 ":ssse3", |
328 ":webp", | 356 ":webp", |
329 ":xml", | 357 ":xml", |
330 ] | 358 ] |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 "tools/SkShaper_harfbuzz.cpp", | 752 "tools/SkShaper_harfbuzz.cpp", |
725 "tools/using_skia_and_harfbuzz.cpp", | 753 "tools/using_skia_and_harfbuzz.cpp", |
726 ] | 754 ] |
727 deps = [ | 755 deps = [ |
728 ":skia", | 756 ":skia", |
729 "//third_party/harfbuzz", | 757 "//third_party/harfbuzz", |
730 ] | 758 ] |
731 testonly = true | 759 testonly = true |
732 } | 760 } |
733 } | 761 } |
OLD | NEW |