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 | |
| 8 | if (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 Malita | 7dc984a | 2020-12-08 11:37:15 -0500 | [diff] [blame^] | 21 | deps = [ |
| 22 | "../..:skia", |
| 23 | "../skshaper", |
| 24 | ] |
Florin Malita | b341810 | 2020-10-15 18:10:29 -0400 | [diff] [blame] | 25 | } |
| 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 | } |