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 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 skia_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 = [ 22 "../..:skia", 23 "../skresources", 24 "../skshaper", 25 ] 26 } 27 28 if (skia_enable_tools) { 29 if (defined(is_skia_standalone)) { 30 skia_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 skia_source_set("tests") { 47 testonly = true 48 49 configs = [ "../..:skia_private" ] 50 sources = [ 51 "tests/Filters.cpp", 52 "tests/Text.cpp", 53 ] 54 55 deps = [ 56 ":svg", 57 "../..:skia", 58 "../..:test", 59 ] 60 } 61 } 62} else { 63 group("svg") { 64 } 65 group("tests") { 66 } 67} 68