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" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
component("svg") {
|
|
|
|
check_includes = false
|
|
|
|
import("svg.gni")
|
|
|
|
public_configs = [ ":public_config" ]
|
|
|
|
public = skia_svg_public
|
|
|
|
sources = skia_svg_sources
|
|
|
|
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)) {
|
|
|
|
source_set("tool") {
|
|
|
|
check_includes = false
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [ "../..:skia_private" ]
|
|
|
|
sources = [ "utils/SvgTool.cpp" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"../..:flags",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [ ":svg" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
source_set("tests") {
|
2020-10-15 22:10:29 +00:00
|
|
|
testonly = true
|
|
|
|
|
2020-12-17 21:36:54 +00:00
|
|
|
configs += [
|
|
|
|
"../..:skia_private",
|
|
|
|
"../..:tests_config",
|
|
|
|
]
|
|
|
|
sources = [ "tests/Text.cpp" ]
|
2020-10-15 22:10:29 +00:00
|
|
|
|
|
|
|
deps = [
|
2020-12-17 21:36:54 +00:00
|
|
|
":svg",
|
|
|
|
"../..:gpu_tool_utils",
|
2020-12-17 19:21:28 +00:00
|
|
|
"../..:skia",
|
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
|
|
|
}
|