xref: /aosp_15_r20/external/skia/modules/sksg/BUILD.gn (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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
6import("../../gn/skia.gni")
7
8config("public_config") {
9  include_dirs = [ "include" ]
10}
11
12skia_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 = [ "../..:skia" ]
19}
20
21if (defined(is_skia_standalone) && skia_enable_tools) {
22  skia_source_set("tests") {
23    testonly = true
24
25    configs = [ "../..:skia_private" ]
26    sources = [ "tests/SGTest.cpp" ]
27    deps = [
28      ":sksg",
29      "../..:skia",
30      "../..:test",
31    ]
32  }
33
34  skia_source_set("slides") {
35    if (target_cpu != "wasm") {  # TODO: clean up wasm test
36      testonly = true
37
38      configs = [ "../..:skia_private" ]
39      sources = [ "slides/SVGPongSlide.cpp" ]
40      deps = [
41        ":sksg",
42        "../..:skia",
43      ]
44    }
45  }
46}
47