skia2/modules/sksg/BUILD.gn
Mike Reed 6cfa297382 remove conditional flags for sksg -- not needed for a module
Bug: skia:
Change-Id: I1b73379bd8a1ba2cd4293180052ba7ad59dfe96f
Reviewed-on: https://skia-review.googlesource.com/144642
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
2018-07-31 22:27:20 +00:00

80 lines
1.7 KiB
Plaintext

# 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") {
include_dirs = [ "include" ]
}
source_set("sksg") {
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",
]
}
source_set("tests") {
testonly = true
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",
]
}
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",
"../..:gm", # TODO: refactor to make this nicer
"../..:skia",
"../..:views", # TODO: refactor to make this nicer
]
}
}