| 1 |
# Copyright 2018 Google Inc. |
| 2 |
# |
| 3 |
# Use of this source code is governed by a BSD-style license that can be |
| 4 |
# found in the LICENSE file. |
| 5 |
|
| 6 |
import("../../gn/skia.gni") |
| 7 |
|
| 8 |
config("public_config") { |
| 9 |
include_dirs = [ "include" ] |
| 10 |
} |
| 11 |
|
| 12 |
skia_component("sksg") { |
| 13 |
check_includes = false |
| 14 |
import("sksg.gni") |
| 15 |
public_configs = [ ":public_config" ] |
| 16 |
sources = skia_sksg_sources |
| 17 |
configs = [ "../../:skia_private" ] |
| 18 |
deps = [ |
| 19 |
"../..:pathops", |
| 20 |
"../..:skia", |
| 21 |
] |
| 22 |
} |
| 23 |
|
| 24 |
if (defined(is_skia_standalone) && skia_enable_tools) { |
| 25 |
skia_source_set("tests") { |
| 26 |
testonly = true |
| 27 |
|
| 28 |
configs = [ "../..:skia_private" ] |
| 29 |
sources = [ "tests/SGTest.cpp" ] |
| 30 |
deps = [ |
| 31 |
":sksg", |
| 32 |
"../..:skia", |
| 33 |
"../..:test", |
| 34 |
] |
| 35 |
} |
| 36 |
|
| 37 |
skia_source_set("slides") { |
| 38 |
if (target_cpu != "wasm") { # TODO: clean up wasm test |
| 39 |
testonly = true |
| 40 |
|
| 41 |
configs = [ "../..:skia_private" ] |
| 42 |
sources = [ "slides/SVGPongSlide.cpp" ] |
| 43 |
deps = [ |
| 44 |
":sksg", |
| 45 |
"../..:skia", |
| 46 |
] |
| 47 |
} |
| 48 |
} |
| 49 |
} |