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.
|
|
|
|
|
|
|
|
config("public_config") {
|
2018-07-31 21:45:19 +00:00
|
|
|
include_dirs = [ "include" ]
|
2018-05-25 16:43:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
source_set("sksg") {
|
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
|
|
|
}
|
|
|
|
|
2018-06-01 19:20:00 +00:00
|
|
|
source_set("tests") {
|
2018-07-31 21:45:19 +00:00
|
|
|
testonly = true
|
2018-05-25 16:43:51 +00:00
|
|
|
|
2018-07-31 21:45:19 +00:00
|
|
|
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",
|
|
|
|
]
|
2018-05-25 16:43:51 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 19:20:00 +00:00
|
|
|
source_set("samples") {
|
2018-07-31 21:45:19 +00:00
|
|
|
if (target_cpu != "wasm") { # TODO: clean up wasm test
|
2018-05-25 16:43:51 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [
|
|
|
|
"../..:skia_private",
|
|
|
|
"../..:samples_config", # TODO: refactor to make this nicer
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"samples/SampleSVGPong.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":sksg",
|
|
|
|
"../..:gm", # TODO: refactor to make this nicer
|
|
|
|
"../..:skia",
|
|
|
|
"../..:views", # TODO: refactor to make this nicer
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|