| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 sources = opts_gypi.sse42_sources | 208 sources = opts_gypi.sse42_sources |
| 209 cflags = [ "-msse4.2" ] | 209 cflags = [ "-msse4.2" ] |
| 210 } | 210 } |
| 211 | 211 |
| 212 opts("avx") { | 212 opts("avx") { |
| 213 enabled = is_x86 | 213 enabled = is_x86 |
| 214 sources = opts_gypi.avx_sources | 214 sources = opts_gypi.avx_sources |
| 215 cflags = [ "-mavx" ] | 215 cflags = [ "-mavx" ] |
| 216 } | 216 } |
| 217 | 217 |
| 218 opts("dsp") { |
| 219 enabled = current_cpu == "mipsel" |
| 220 sources = opts_gypi.mips_dsp_sources |
| 221 cflags = [ "-Wno-deprecated-register" ] # FIXME |
| 222 } |
| 223 |
| 218 # Any feature of Skia that requires third-party code should be optional and use
this template. | 224 # Any feature of Skia that requires third-party code should be optional and use
this template. |
| 219 template("optional") { | 225 template("optional") { |
| 220 if (invoker.enabled) { | 226 if (invoker.enabled) { |
| 221 config(target_name + "_public") { | 227 config(target_name + "_public") { |
| 222 defines = invoker.public_defines | 228 defines = invoker.public_defines |
| 223 } | 229 } |
| 224 source_set(target_name) { | 230 source_set(target_name) { |
| 225 forward_variables_from(invoker, "*", [ "public_defines" ]) | 231 forward_variables_from(invoker, "*", [ "public_defines" ]) |
| 226 all_dependent_configs = [ ":" + target_name + "_public" ] | 232 all_dependent_configs = [ ":" + target_name + "_public" ] |
| 227 configs += skia_library_configs | 233 configs += skia_library_configs |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 333 |
| 328 component("skia") { | 334 component("skia") { |
| 329 public_configs = [ ":skia_public" ] | 335 public_configs = [ ":skia_public" ] |
| 330 configs += skia_library_configs | 336 configs += skia_library_configs |
| 331 | 337 |
| 332 deps = [ | 338 deps = [ |
| 333 ":arm64", | 339 ":arm64", |
| 334 ":armv7", | 340 ":armv7", |
| 335 ":avx", | 341 ":avx", |
| 336 ":crc32", | 342 ":crc32", |
| 343 ":dsp", |
| 337 ":gif", | 344 ":gif", |
| 338 ":jpeg", | 345 ":jpeg", |
| 339 ":none", | 346 ":none", |
| 340 ":pdf", | 347 ":pdf", |
| 341 ":png", | 348 ":png", |
| 342 ":sse2", | 349 ":sse2", |
| 343 ":sse41", | 350 ":sse41", |
| 344 ":sse42", | 351 ":sse42", |
| 345 ":ssse3", | 352 ":ssse3", |
| 346 ":webp", | 353 ":webp", |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 "tools/SkShaper_harfbuzz.cpp", | 773 "tools/SkShaper_harfbuzz.cpp", |
| 767 "tools/using_skia_and_harfbuzz.cpp", | 774 "tools/using_skia_and_harfbuzz.cpp", |
| 768 ] | 775 ] |
| 769 deps = [ | 776 deps = [ |
| 770 ":skia", | 777 ":skia", |
| 771 "//third_party/harfbuzz", | 778 "//third_party/harfbuzz", |
| 772 ] | 779 ] |
| 773 testonly = true | 780 testonly = true |
| 774 } | 781 } |
| 775 } | 782 } |
| OLD | NEW |