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 && skia_use_expat) { 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 "../skunicode", 26 ] 27 } 28 29 if (skia_enable_tools) { 30 if (defined(is_skia_standalone)) { 31 skia_source_set("tool") { 32 check_includes = false 33 testonly = true 34 35 configs = [ "../..:skia_private" ] 36 sources = [ "utils/SvgTool.cpp" ] 37 38 deps = [ 39 "../..:flags", 40 "../..:skia", 41 "../..:tool_utils", 42 ] 43 44 public_deps = [ ":svg" ] 45 } 46 } 47 48 skia_source_set("tests") { 49 testonly = true 50 51 configs = [ "../..:skia_private" ] 52 sources = [ 53 "tests/Filters.cpp", 54 "tests/Text.cpp", 55 ] 56 57 deps = [ 58 ":svg", 59 "../..:skia", 60 "../..:test", 61 "../skshaper", 62 ] 63 } 64 } 65} else { 66 group("svg") { 67 } 68 group("tests") { 69 } 70} 71