blob: 6f5a4d3418e8b2ed79a169f912dff091d189346e [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",
23 "../skshaper",
24 ]
Florin Malitab3418102020-10-15 18:10:29 -040025 }
26
Florin Malitadec78022020-12-17 16:36:54 -050027 if (skia_enable_tools) {
28 if (defined(is_skia_standalone)) {
29 source_set("tool") {
30 check_includes = false
31 testonly = true
32
33 configs += [ "../..:skia_private" ]
34 sources = [ "utils/SvgTool.cpp" ]
35
36 deps = [
37 "../..:flags",
38 "../..:skia",
39 ]
40
41 public_deps = [ ":svg" ]
42 }
43 }
44
45 source_set("tests") {
Florin Malitab3418102020-10-15 18:10:29 -040046 testonly = true
47
Florin Malitadec78022020-12-17 16:36:54 -050048 configs += [
49 "../..:skia_private",
50 "../..:tests_config",
51 ]
52 sources = [ "tests/Text.cpp" ]
Florin Malitab3418102020-10-15 18:10:29 -040053
54 deps = [
Florin Malitadec78022020-12-17 16:36:54 -050055 ":svg",
56 "../..:gpu_tool_utils",
Derek Sollenbergere2f62452020-12-17 19:21:28 +000057 "../..:skia",
Florin Malitab3418102020-10-15 18:10:29 -040058 ]
Florin Malitab3418102020-10-15 18:10:29 -040059 }
60 }
61} else {
62 group("svg") {
63 }
Florin Malitadec78022020-12-17 16:36:54 -050064 group("tests") {
65 }
Florin Malitab3418102020-10-15 18:10:29 -040066}