Debian Codegraph @

modules/svg/BUILD.gn

raw
1 # Copyright 2020 Google Inc.
2 #
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import("../../gn/skia.gni")
7
8 if (skia_enable_svg && skia_use_expat) {
9 config("public_config") {
10 defines = [ "SK_ENABLE_SVG" ]
11 include_dirs = [ "include" ]
12 }
13
14 skia_component("svg") {
15 check_includes = false
16 import("svg.gni")
17 public_configs = [ ":public_config" ]
18 public = skia_svg_renderer_public
19 sources = skia_svg_renderer_sources
20 configs = [ "../../:skia_private" ]
21 deps = [
22 "../..:pathops",
23 "../..:skia",
24 "../skresources",
25 "../skshaper",
26 "../skunicode",
27 ]
28 }
29
30 if (skia_enable_tools) {
31 if (defined(is_skia_standalone)) {
32 skia_source_set("tool") {
33 check_includes = false
34 testonly = true
35
36 configs = [ "../..:skia_private" ]
37 sources = [ "utils/SvgTool.cpp" ]
38
39 deps = [
40 "../..:flags",
41 "../..:skia",
42 "../..:tool_utils",
43 ]
44
45 public_deps = [ ":svg" ]
46 }
47 }
48
49 if (skia_enable_tools) {
50 skia_source_set("tests") {
51 testonly = true
52
53 configs = [ "../..:skia_private" ]
54 sources = [
55 "tests/Filters.cpp",
56 "tests/Text.cpp",
57 ]
58
59 deps = [
60 ":svg",
61 "../..:skia",
62 "../..:test",
63 "../skshaper",
64 ]
65 }
66 }
67 }
68 } else {
69 group("svg") {
70 }
71 group("tests") {
72 }
73 }