2018-05-25 16:43:51 +00:00
|
|
|
# Copyright 2018 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2019-02-22 15:04:06 +00:00
|
|
|
import("../../gn/skia.gni")
|
|
|
|
|
2018-05-25 16:43:51 +00:00
|
|
|
config("public_config") {
|
2018-07-31 21:45:19 +00:00
|
|
|
include_dirs = [ "include" ]
|
2018-05-25 16:43:51 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 19:29:24 +00:00
|
|
|
component("sksg") {
|
2019-02-26 16:54:25 +00:00
|
|
|
check_includes = false
|
2018-08-02 15:54:16 +00:00
|
|
|
import("sksg.gni")
|
2018-07-31 21:45:19 +00:00
|
|
|
public_configs = [ ":public_config" ]
|
2018-08-02 15:54:16 +00:00
|
|
|
sources = skia_sksg_sources
|
2018-07-31 21:45:19 +00:00
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
|
|
|
]
|
2018-05-25 16:43:51 +00:00
|
|
|
}
|
|
|
|
|
2019-02-22 15:04:06 +00:00
|
|
|
if (defined(is_skia_standalone) && skia_enable_tools) {
|
2018-10-18 16:40:09 +00:00
|
|
|
source_set("tests") {
|
2018-05-25 16:43:51 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [
|
|
|
|
"../..:skia_private",
|
2018-10-18 16:40:09 +00:00
|
|
|
"../..:tests_config", # TODO: refactor to make this nicer
|
2018-05-25 16:43:51 +00:00
|
|
|
]
|
|
|
|
sources = [
|
2018-10-18 16:40:09 +00:00
|
|
|
"tests/SGTest.cpp",
|
2018-05-25 16:43:51 +00:00
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":sksg",
|
2018-10-18 16:40:09 +00:00
|
|
|
"../..:gpu_tool_utils", # TODO: refactor to make this nicer
|
2018-05-25 16:43:51 +00:00
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
}
|
2018-10-18 16:40:09 +00:00
|
|
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2018-05-25 16:43:51 +00:00
|
|
|
}
|