2020-06-08 16:03:48 +00:00
|
|
|
# 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",
|
|
|
|
]
|
2020-06-11 15:07:15 +00:00
|
|
|
sources = [
|
|
|
|
"tests/BinaryReader.cpp",
|
2020-06-19 18:21:33 +00:00
|
|
|
"tests/DomTypes.cpp",
|
2020-06-11 15:07:15 +00:00
|
|
|
"tests/JsonReader.cpp",
|
|
|
|
]
|
2020-06-08 16:03:48 +00:00
|
|
|
|
|
|
|
deps = [
|
|
|
|
":skrive",
|
|
|
|
"../..:skia",
|
2021-02-18 03:14:34 +00:00
|
|
|
"../..:test",
|
2020-06-08 16:03:48 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
group("skrive") {
|
|
|
|
}
|
|
|
|
group("tests") {
|
|
|
|
}
|
|
|
|
}
|