1ba9c4df77
Depends on https://skia-review.googlesource.com/c/skia/+/186870 It's optional at build time, which is good given that it adds about 2MB of uncompressed size (from 4.3 MB to 6.4 MB) Bug: skia: Change-Id: I5f54ad628b735c3bc880e917394fb27d16849ebe Reviewed-on: https://skia-review.googlesource.com/c/187924 Commit-Queue: Kevin Lubick <kjlubick@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
# Copyright 2018 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")
|
|
|
|
config("public_config") {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
|
|
component("sksg") {
|
|
import("sksg.gni")
|
|
public_configs = [ ":public_config" ]
|
|
sources = skia_sksg_sources
|
|
configs += [ "../../:skia_private" ]
|
|
deps = [
|
|
"../..:skia",
|
|
]
|
|
}
|
|
|
|
if (defined(is_skia_standalone) && skia_enable_tools) {
|
|
source_set("tests") {
|
|
testonly = true
|
|
|
|
configs += [
|
|
"../..:skia_private",
|
|
"../..:tests_config", # TODO: refactor to make this nicer
|
|
]
|
|
sources = [
|
|
"tests/SGTest.cpp",
|
|
]
|
|
deps = [
|
|
":sksg",
|
|
"../..:gpu_tool_utils", # TODO: refactor to make this nicer
|
|
"../..:skia",
|
|
]
|
|
}
|
|
|
|
source_set("samples") {
|
|
if (target_cpu != "wasm") { # TODO: clean up wasm test
|
|
testonly = true
|
|
|
|
configs += [
|
|
"../..:skia_private",
|
|
"../..:samples_config", # TODO: refactor to make this nicer
|
|
]
|
|
sources = [
|
|
"samples/SampleSVGPong.cpp",
|
|
]
|
|
deps = [
|
|
":sksg",
|
|
"../..:samples",
|
|
"../..:skia",
|
|
]
|
|
}
|
|
}
|
|
}
|