Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 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 | |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 6 | config("public_config") { |
Mike Reed | 6cfa297 | 2018-07-31 17:45:19 -0400 | [diff] [blame] | 7 | include_dirs = [ "include" ] |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 8 | } |
| 9 | |
Mike Klein | fcd1654 | 2018-08-07 15:29:24 -0400 | [diff] [blame] | 10 | component("sksg") { |
Florin Malita | 8949c8a | 2018-08-02 11:54:16 -0400 | [diff] [blame] | 11 | import("sksg.gni") |
Mike Reed | 6cfa297 | 2018-07-31 17:45:19 -0400 | [diff] [blame] | 12 | public_configs = [ ":public_config" ] |
Florin Malita | 8949c8a | 2018-08-02 11:54:16 -0400 | [diff] [blame] | 13 | sources = skia_sksg_sources |
Mike Reed | 6cfa297 | 2018-07-31 17:45:19 -0400 | [diff] [blame] | 14 | configs += [ "../../:skia_private" ] |
| 15 | deps = [ |
| 16 | "../..:skia", |
| 17 | ] |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 18 | } |
| 19 | |
Mike Klein | 6ddd442 | 2018-10-18 12:40:09 -0400 | [diff] [blame] | 20 | if (defined(is_skia_standalone)) { |
| 21 | source_set("tests") { |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 22 | testonly = true |
| 23 | |
| 24 | configs += [ |
| 25 | "../..:skia_private", |
Mike Klein | 6ddd442 | 2018-10-18 12:40:09 -0400 | [diff] [blame] | 26 | "../..:tests_config", # TODO: refactor to make this nicer |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 27 | ] |
| 28 | sources = [ |
Mike Klein | 6ddd442 | 2018-10-18 12:40:09 -0400 | [diff] [blame] | 29 | "tests/SGTest.cpp", |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 30 | ] |
| 31 | deps = [ |
| 32 | ":sksg", |
Mike Klein | 6ddd442 | 2018-10-18 12:40:09 -0400 | [diff] [blame] | 33 | "../..:gpu_tool_utils", # TODO: refactor to make this nicer |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 34 | "../..:skia", |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 35 | ] |
| 36 | } |
Mike Klein | 6ddd442 | 2018-10-18 12:40:09 -0400 | [diff] [blame] | 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 | } |
Florin Malita | 3b526b0 | 2018-05-25 12:43:51 -0400 | [diff] [blame] | 56 | } |