• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6config("public_config") {
7  include_dirs = [ "include" ]
8}
9
10component("sksg") {
11  import("sksg.gni")
12  public_configs = [ ":public_config" ]
13  sources = skia_sksg_sources
14  configs += [ "../../:skia_private" ]
15  deps = [
16    "../..:skia",
17  ]
18}
19
20if (defined(is_skia_standalone)) {
21  source_set("tests") {
22    testonly = true
23
24    configs += [
25      "../..:skia_private",
26      "../..:tests_config",  # TODO: refactor to make this nicer
27    ]
28    sources = [
29      "tests/SGTest.cpp",
30    ]
31    deps = [
32      ":sksg",
33      "../..:gpu_tool_utils",  # TODO: refactor to make this nicer
34      "../..:skia",
35    ]
36  }
37
38  source_set("samples") {
39    if (target_cpu != "wasm") {  # TODO: clean up wasm test
40      testonly = true
41
42      configs += [
43        "../..:skia_private",
44        "../..:samples_config",  # TODO: refactor to make this nicer
45      ]
46      sources = [
47        "samples/SampleSVGPong.cpp",
48      ]
49      deps = [
50        ":sksg",
51        "../..:samples",
52        "../..:skia",
53      ]
54    }
55  }
56}
57