Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 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) { | ||||
9 | config("public_config") { | ||||
10 | defines = [ "SK_ENABLE_SVG" ] | ||||
11 | include_dirs = [ "include" ] | ||||
12 | } | ||||
13 | |||||
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 14 | skia_component("svg") { |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 15 | check_includes = false |
16 | import("svg.gni") | ||||
17 | public_configs = [ ":public_config" ] | ||||
18 | public = skia_svg_public | ||||
19 | sources = skia_svg_sources | ||||
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 20 | configs = [ "../../:skia_private" ] |
Florin Malita | 7dc984a | 2020-12-08 11:37:15 -0500 | [diff] [blame] | 21 | deps = [ |
22 | "../..:skia", | ||||
Florin Malita | 24df67d | 2021-01-26 18:45:34 -0500 | [diff] [blame] | 23 | "../skresources", |
Florin Malita | 7dc984a | 2020-12-08 11:37:15 -0500 | [diff] [blame] | 24 | "../skshaper", |
25 | ] | ||||
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 26 | } |
27 | |||||
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 28 | if (skia_enable_tools) { |
29 | if (defined(is_skia_standalone)) { | ||||
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 30 | skia_source_set("tool") { |
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 31 | check_includes = false |
32 | testonly = true | ||||
33 | |||||
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 34 | configs = [ "../..:skia_private" ] |
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 35 | sources = [ "utils/SvgTool.cpp" ] |
36 | |||||
37 | deps = [ | ||||
38 | "../..:flags", | ||||
39 | "../..:skia", | ||||
40 | ] | ||||
41 | |||||
42 | public_deps = [ ":svg" ] | ||||
43 | } | ||||
44 | } | ||||
45 | |||||
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 46 | skia_source_set("tests") { |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 47 | testonly = true |
48 | |||||
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 49 | configs = [ "../..:skia_private" ] |
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 50 | sources = [ "tests/Text.cpp" ] |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 51 | |
52 | deps = [ | ||||
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 53 | ":svg", |
Derek Sollenberger | e2f6245 | 2020-12-17 19:21:28 +0000 | [diff] [blame] | 54 | "../..:skia", |
Ben Wagner | bded42a | 2021-02-17 22:14:34 -0500 | [diff] [blame] | 55 | "../..:test", |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 56 | ] |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 57 | } |
58 | } | ||||
59 | } else { | ||||
60 | group("svg") { | ||||
61 | } | ||||
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 62 | group("tests") { |
63 | } | ||||
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 64 | } |