blob: 48e380cda89219a388bd82d7eb2500560724567b [file] [log] [blame]
Florin Malita3b526b02018-05-25 12:43:51 -04001# 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
Florin Malita3b526b02018-05-25 12:43:51 -04006config("public_config") {
Mike Reed6cfa2972018-07-31 17:45:19 -04007 include_dirs = [ "include" ]
Florin Malita3b526b02018-05-25 12:43:51 -04008}
9
Mike Kleinfcd16542018-08-07 15:29:24 -040010component("sksg") {
Florin Malita8949c8a2018-08-02 11:54:16 -040011 import("sksg.gni")
Mike Reed6cfa2972018-07-31 17:45:19 -040012 public_configs = [ ":public_config" ]
Florin Malita8949c8a2018-08-02 11:54:16 -040013 sources = skia_sksg_sources
Mike Reed6cfa2972018-07-31 17:45:19 -040014 configs += [ "../../:skia_private" ]
15 deps = [
16 "../..:skia",
17 ]
Florin Malita3b526b02018-05-25 12:43:51 -040018}
19
Mike Klein6ddd4422018-10-18 12:40:09 -040020if (defined(is_skia_standalone)) {
21 source_set("tests") {
Florin Malita3b526b02018-05-25 12:43:51 -040022 testonly = true
23
24 configs += [
25 "../..:skia_private",
Mike Klein6ddd4422018-10-18 12:40:09 -040026 "../..:tests_config", # TODO: refactor to make this nicer
Florin Malita3b526b02018-05-25 12:43:51 -040027 ]
28 sources = [
Mike Klein6ddd4422018-10-18 12:40:09 -040029 "tests/SGTest.cpp",
Florin Malita3b526b02018-05-25 12:43:51 -040030 ]
31 deps = [
32 ":sksg",
Mike Klein6ddd4422018-10-18 12:40:09 -040033 "../..:gpu_tool_utils", # TODO: refactor to make this nicer
Florin Malita3b526b02018-05-25 12:43:51 -040034 "../..:skia",
Florin Malita3b526b02018-05-25 12:43:51 -040035 ]
36 }
Mike Klein6ddd4422018-10-18 12:40:09 -040037
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 }
Florin Malita3b526b02018-05-25 12:43:51 -040056}