skia2/modules/svg/BUILD.gn
Ben Wagner 3d9ab7e7ec Separate general defaults from Skia defaults
In the build there are some defaults which actually apply to every
use of a built-in target type, but there are some (particularaly
warnings) which apply only to targets controlled by Skia. Currently
these unwanted defaults are magically known to exist and removed
wherever they are not wanted. Instead, create 'skia_' prefixed target
templates and apply these defaults to those instead.

Change-Id: I3a2afb53c7205a2e2748d1cfad46319f2e93d3b3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/385516
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2021-03-22 15:30:56 +00:00

65 lines
1.2 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/Text.cpp" ]
deps = [
":svg",
"../..:skia",
"../..:test",
]
}
}
} else {
group("svg") {
}
group("tests") {
}
}