skia2/modules/sksg/BUILD.gn
Ben Wagner bded42ab51 Split :tests into :test and :tests.
Split the :tests target into a :test target which contains the test
framework and :tests which collects all of the test cases. This allows
for all targets which define tests to depend on :test in order to define
tests, with :tests then depending on all targets which define tests. A
similar split should be considered for gms, samples, and benches.

Change-Id: Ic9f373ec0c1a8ea842fa68327e854db23477caae
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/371696
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-02-18 17:01:23 +00:00

51 lines
1.0 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" ]
sources = [ "tests/SGTest.cpp" ]
deps = [
":sksg",
"../..:skia",
"../..:test",
]
}
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",
]
}
}
}