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_fontconfig = is_linux | 10 skia_use_fontconfig = is_linux |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 opts("avx") { | 216 opts("avx") { |
217 enabled = is_x86 | 217 enabled = is_x86 |
218 sources = opts_gypi.avx_sources | 218 sources = opts_gypi.avx_sources |
219 cflags = [ "-mavx" ] | 219 cflags = [ "-mavx" ] |
220 } | 220 } |
221 | 221 |
222 opts("dsp") { | 222 opts("dsp") { |
223 enabled = current_cpu == "mipsel" | 223 enabled = current_cpu == "mipsel" |
224 sources = opts_gypi.mips_dsp_sources | 224 sources = opts_gypi.mips_dsp_sources |
225 cflags = [ "-Wno-deprecated-register" ] # FIXME | 225 cflags = [] |
226 } | 226 } |
227 | 227 |
228 # Any feature of Skia that requires third-party code should be optional and use
this template. | 228 # Any feature of Skia that requires third-party code should be optional and use
this template. |
229 template("optional") { | 229 template("optional") { |
230 if (invoker.enabled) { | 230 if (invoker.enabled) { |
231 config(target_name + "_public") { | 231 config(target_name + "_public") { |
232 defines = invoker.public_defines | 232 defines = invoker.public_defines |
233 } | 233 } |
234 source_set(target_name) { | 234 source_set(target_name) { |
235 forward_variables_from(invoker, "*", [ "public_defines" ]) | 235 forward_variables_from(invoker, "*", [ "public_defines" ]) |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 "tools/using_skia_and_harfbuzz.cpp", | 811 "tools/using_skia_and_harfbuzz.cpp", |
812 ] | 812 ] |
813 deps = [ | 813 deps = [ |
814 ":skia", | 814 ":skia", |
815 "//third_party/harfbuzz", | 815 "//third_party/harfbuzz", |
816 ] | 816 ] |
817 testonly = true | 817 testonly = true |
818 } | 818 } |
819 } | 819 } |
820 } | 820 } |
OLD | NEW |