blob: 227aa099ff3cad48f2edaeadd7048834526b7a5c [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
27 if (skia_enable_tools && defined(is_skia_standalone)) {
28 source_set("tool") {
29 check_includes = false
30 testonly = true
31
32 configs += [ "../..:skia_private" ]
33 sources = [ "utils/SvgTool.cpp" ]
34
35 deps = [
36 "../..:flags",
37 "../..:skia",
38 ]
39
40 public_deps = [ ":svg" ]
41 }
42 }
43} else {
44 group("svg") {
45 }
46}