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 | |
Robert Phillips | 2af13c1 | 2021-09-01 16:47:01 +0000 | [diff] [blame] | 8 | if (skia_enable_svg && skia_use_expat) { |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 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" ] |
Tyler Denniston | 080001c | 2021-05-05 09:51:12 -0400 | [diff] [blame] | 50 | sources = [ |
| 51 | "tests/Filters.cpp", |
| 52 | "tests/Text.cpp", |
| 53 | ] |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 54 | |
| 55 | deps = [ |
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 56 | ":svg", |
Derek Sollenberger | e2f6245 | 2020-12-17 19:21:28 +0000 | [diff] [blame] | 57 | "../..:skia", |
Ben Wagner | bded42a | 2021-02-17 22:14:34 -0500 | [diff] [blame] | 58 | "../..:test", |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 59 | ] |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 60 | } |
| 61 | } |
| 62 | } else { |
| 63 | group("svg") { |
| 64 | } |
Florin Malita | dec7802 | 2020-12-17 16:36:54 -0500 | [diff] [blame] | 65 | group("tests") { |
| 66 | } |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 67 | } |