c25f4e9eaa
`gn check` passes. We will work towards removing `check_includes = false`. Change-Id: I0ab396fadaf31a166921bdea334b2cfedca23dcd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/195363 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
60 lines
1.2 KiB
Plaintext
60 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") {
|
|
check_includes = false
|
|
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",
|
|
]
|
|
}
|
|
}
|
|
}
|