blob: e1a605623aa9ec03d82280c234c0ac0eb58ae39e [file] [log] [blame]
Florin Malitab3418102020-10-15 18:10:29 -04001# 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
6import("../../gn/skia.gni")
7
8if (skia_enable_svg) {
9 config("public_config") {
10 defines = [ "SK_ENABLE_SVG" ]
11 include_dirs = [ "include" ]
12 }
13
14 component("svg") {
15 check_includes = false
16 import("svg.gni")
17 public_configs = [ ":public_config" ]
18 public = skia_svg_public
19 sources = skia_svg_sources
20 configs += [ "../../:skia_private" ]
Florin Malita7dc984a2020-12-08 11:37:15 -050021 deps = [
22 "../..:skia",
Florin Malita24df67d2021-01-26 18:45:34 -050023 "../skresources",
Florin Malita7dc984a2020-12-08 11:37:15 -050024 "../skshaper",
25 ]
Florin Malitab3418102020-10-15 18:10:29 -040026 }
27
Florin Malitadec78022020-12-17 16:36:54 -050028 if (skia_enable_tools) {
29 if (defined(is_skia_standalone)) {
30 source_set("tool") {
31 check_includes = false
32 testonly = true
33
34 configs += [ "../..:skia_private" ]
35 sources = [ "utils/SvgTool.cpp" ]
36
37 deps = [
38 "../..:flags",
39 "../..:skia",
40 ]
41
42 public_deps = [ ":svg" ]
43 }
44 }
45
46 source_set("tests") {
Florin Malitab3418102020-10-15 18:10:29 -040047 testonly = true
48
Florin Malitadec78022020-12-17 16:36:54 -050049 configs += [
50 "../..:skia_private",
51 "../..:tests_config",
52 ]
53 sources = [ "tests/Text.cpp" ]
Florin Malitab3418102020-10-15 18:10:29 -040054
55 deps = [
Florin Malitadec78022020-12-17 16:36:54 -050056 ":svg",
57 "../..:gpu_tool_utils",
Derek Sollenbergere2f62452020-12-17 19:21:28 +000058 "../..:skia",
Florin Malitab3418102020-10-15 18:10:29 -040059 ]
Florin Malitab3418102020-10-15 18:10:29 -040060 }
61 }
62} else {
63 group("svg") {
64 }
Florin Malitadec78022020-12-17 16:36:54 -050065 group("tests") {
66 }
Florin Malitab3418102020-10-15 18:10:29 -040067}