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