skia2/modules/sksg/BUILD.gn
Brian Osman ccb87523a2 Revert "Rename sg tests and samples targets to fix Visual Studio name conflict"
This reverts commit ba2f82986f.

Reason for revert: This is going to be hard to maintain long-term. I've fixed the python script to handle this case: https://skia-review.googlesource.com/c/skia/+/131580

Original change's description:
> Rename sg tests and samples targets to fix Visual Studio name conflict
> 
> GN was emitting projects for the SG versions of tests and samples, which
> conflicted with the top-level versions of those. This made the normal GN
> VS IDE files confusing, and the merged ones totally broken.
> 
> Change-Id: Ifd048258d4358ed2852d5263b16278c5b8ebd9c4
> Reviewed-on: https://skia-review.googlesource.com/131391
> Commit-Queue: Brian Osman <brianosman@google.com>
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
> Commit-Queue: Florin Malita <fmalita@chromium.org>
> Auto-Submit: Brian Osman <brianosman@google.com>
> Reviewed-by: Jim Van Verth <jvanverth@google.com>
> Reviewed-by: Florin Malita <fmalita@chromium.org>

TBR=jvanverth@google.com,brianosman@google.com,fmalita@chromium.org,fmalita@google.com

Change-Id: I25553fdcfd063c920635fe1bd71553b578d0b0c8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/131600
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2018-06-01 19:20:07 +00:00

91 lines
2.0 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.
declare_args() {
skia_enable_sksg = true
}
config("public_config") {
if (skia_enable_sksg) {
defines = [ "SK_HAS_SKSG" ]
include_dirs = [ "include" ]
}
}
source_set("sksg") {
if (skia_enable_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") {
if (skia_enable_sksg) {
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 (skia_enable_sksg && 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
]
}
}