lin
2025-08-14 dae8bad597b6607a449b32bf76c523423f7720ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 2018 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
 
import("../../gn/skia.gni")
 
config("public_config") {
  include_dirs = [ "include" ]
}
 
component("sksg") {
  import("sksg.gni")
  public_configs = [ ":public_config" ]
  sources = skia_sksg_sources
  configs += [ "../../:skia_private" ]
  deps = [
    "../..:skia",
  ]
}
 
if (defined(is_skia_standalone) && skia_enable_tools) {
  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",
        "../..:samples",
        "../..:skia",
      ]
    }
  }
}