skia2/modules/svg/BUILD.gn
Tyler Denniston 080001cbf1 [svg] Fix nullptr deref for none input paints
This handles the case where a filter effect input is StrokePaint or
FillPaint, but the referencing element has a 'none' paint specified
(explicitly or via parsing error, as in the original bug report).

Bug: skia:11213
Change-Id: Ie710a9fc5ccb3c24014735e01c70a0ba42c7a99d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404696
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2021-05-05 16:37:53 +00:00

68 lines
1.3 KiB
Plaintext

# Copyright 2020 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gn/skia.gni")
if (skia_enable_svg) {
config("public_config") {
defines = [ "SK_ENABLE_SVG" ]
include_dirs = [ "include" ]
}
skia_component("svg") {
check_includes = false
import("svg.gni")
public_configs = [ ":public_config" ]
public = skia_svg_public
sources = skia_svg_sources
configs = [ "../../:skia_private" ]
deps = [
"../..:skia",
"../skresources",
"../skshaper",
]
}
if (skia_enable_tools) {
if (defined(is_skia_standalone)) {
skia_source_set("tool") {
check_includes = false
testonly = true
configs = [ "../..:skia_private" ]
sources = [ "utils/SvgTool.cpp" ]
deps = [
"../..:flags",
"../..:skia",
]
public_deps = [ ":svg" ]
}
}
skia_source_set("tests") {
testonly = true
configs = [ "../..:skia_private" ]
sources = [
"tests/Filters.cpp",
"tests/Text.cpp",
]
deps = [
":svg",
"../..:skia",
"../..:test",
]
}
}
} else {
group("svg") {
}
group("tests") {
}
}