24df67d04e
This is a reland of dd29e20904
Original change's description:
> [svg] Plumb a ResourceProvider
>
> ... for image loading.
>
> Update the SVG tools to pass local/FS resource providers.
>
> Change-Id: I2c0e446047da87f177fde0f23b7ea1f0a856e808
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359996
> Commit-Queue: Florin Malita <fmalita@google.com>
> Reviewed-by: Tyler Denniston <tdenniston@google.com>
Change-Id: I28de60b299fc89f46b090812fc632105143fb6da
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/360607
Commit-Queue: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Florin Malita <fmalita@google.com>
68 lines
1.3 KiB
Plaintext
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" ]
|
|
}
|
|
|
|
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)) {
|
|
source_set("tool") {
|
|
check_includes = false
|
|
testonly = true
|
|
|
|
configs += [ "../..:skia_private" ]
|
|
sources = [ "utils/SvgTool.cpp" ]
|
|
|
|
deps = [
|
|
"../..:flags",
|
|
"../..:skia",
|
|
]
|
|
|
|
public_deps = [ ":svg" ]
|
|
}
|
|
}
|
|
|
|
source_set("tests") {
|
|
testonly = true
|
|
|
|
configs += [
|
|
"../..:skia_private",
|
|
"../..:tests_config",
|
|
]
|
|
sources = [ "tests/Text.cpp" ]
|
|
|
|
deps = [
|
|
":svg",
|
|
"../..:gpu_tool_utils",
|
|
"../..:skia",
|
|
]
|
|
}
|
|
}
|
|
} else {
|
|
group("svg") {
|
|
}
|
|
group("tests") {
|
|
}
|
|
}
|