2020-10-15 22:10:29 +00:00
|
|
|
# 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" ]
|
|
|
|
}
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_component("svg") {
|
2020-10-15 22:10:29 +00:00
|
|
|
check_includes = false
|
|
|
|
import("svg.gni")
|
|
|
|
public_configs = [ ":public_config" ]
|
|
|
|
public = skia_svg_public
|
|
|
|
sources = skia_svg_sources
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../../:skia_private" ]
|
2020-12-08 16:37:15 +00:00
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
2021-01-26 23:45:34 +00:00
|
|
|
"../skresources",
|
2020-12-08 16:37:15 +00:00
|
|
|
"../skshaper",
|
|
|
|
]
|
2020-10-15 22:10:29 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 21:36:54 +00:00
|
|
|
if (skia_enable_tools) {
|
|
|
|
if (defined(is_skia_standalone)) {
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("tool") {
|
2020-12-17 21:36:54 +00:00
|
|
|
check_includes = false
|
|
|
|
testonly = true
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../..:skia_private" ]
|
2020-12-17 21:36:54 +00:00
|
|
|
sources = [ "utils/SvgTool.cpp" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"../..:flags",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [ ":svg" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("tests") {
|
2020-10-15 22:10:29 +00:00
|
|
|
testonly = true
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../..:skia_private" ]
|
2020-12-17 21:36:54 +00:00
|
|
|
sources = [ "tests/Text.cpp" ]
|
2020-10-15 22:10:29 +00:00
|
|
|
|
|
|
|
deps = [
|
2020-12-17 21:36:54 +00:00
|
|
|
":svg",
|
2020-12-17 19:21:28 +00:00
|
|
|
"../..:skia",
|
2021-02-18 03:14:34 +00:00
|
|
|
"../..:test",
|
2020-10-15 22:10:29 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
group("svg") {
|
|
|
|
}
|
2020-12-17 21:36:54 +00:00
|
|
|
group("tests") {
|
|
|
|
}
|
2020-10-15 22:10:29 +00:00
|
|
|
}
|