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-07-31 21:45:19 +00:00
|
|
|
public_configs = [ ":public_config" ]
|
|
|
|
sources = [
|
|
|
|
"src/SkSGClipEffect.cpp",
|
|
|
|
"src/SkSGColor.cpp",
|
|
|
|
"src/SkSGDraw.cpp",
|
|
|
|
"src/SkSGEffectNode.cpp",
|
|
|
|
"src/SkSGGeometryNode.cpp",
|
|
|
|
"src/SkSGGeometryTransform.cpp",
|
|
|
|
"src/SkSGGradient.cpp",
|
|
|
|
"src/SkSGGroup.cpp",
|
|
|
|
"src/SkSGImage.cpp",
|
|
|
|
"src/SkSGInvalidationController.cpp",
|
|
|
|
"src/SkSGMaskEffect.cpp",
|
|
|
|
"src/SkSGMerge.cpp",
|
|
|
|
"src/SkSGNode.cpp",
|
|
|
|
"src/SkSGOpacityEffect.cpp",
|
|
|
|
"src/SkSGPaintNode.cpp",
|
|
|
|
"src/SkSGPath.cpp",
|
|
|
|
"src/SkSGPlane.cpp",
|
|
|
|
"src/SkSGRect.cpp",
|
|
|
|
"src/SkSGRenderNode.cpp",
|
|
|
|
"src/SkSGRoundEffect.cpp",
|
|
|
|
"src/SkSGScene.cpp",
|
|
|
|
"src/SkSGText.cpp",
|
|
|
|
"src/SkSGTransform.cpp",
|
|
|
|
"src/SkSGTrimEffect.cpp",
|
|
|
|
]
|
|
|
|
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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|