skia2/experimental/skrive/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

53 lines
1.0 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_skrive) {
config("public_config") {
defines = [ "SK_ENABLE_SKRIVE" ]
include_dirs = [ "include" ]
}
component("skrive") {
check_includes = false
import("skrive.gni")
public_configs = [ ":public_config" ]
public = skia_skrive_public
sources = skia_skrive_sources
configs += [ "../../:skia_private" ]
deps = [ "../..:skia" ]
}
if (defined(is_skia_standalone)) {
if (skia_enable_tools) {
source_set("tests") {
testonly = true
configs += [
"../..:skia_private",
"../..:tests_config",
]
sources = [
"tests/BinaryReader.cpp",
"tests/DomTypes.cpp",
"tests/JsonReader.cpp",
]
deps = [
":skrive",
"../..:skia",
"../..:test",
]
}
}
}
} else {
group("skrive") {
}
group("tests") {
}
}