Florin Malita | 26ae40f | 2020-06-08 12:03:48 -0400 | [diff] [blame] | 1 | # Copyright 2020 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 | |
| 6 | import("../../gn/skia.gni") |
| 7 | |
| 8 | if (skia_enable_skrive) { |
| 9 | config("public_config") { |
| 10 | defines = [ "SK_ENABLE_SKRIVE" ] |
| 11 | include_dirs = [ "include" ] |
| 12 | } |
| 13 | |
| 14 | component("skrive") { |
| 15 | check_includes = false |
| 16 | import("skrive.gni") |
| 17 | public_configs = [ ":public_config" ] |
| 18 | public = skia_skrive_public |
| 19 | sources = skia_skrive_sources |
| 20 | configs += [ "../../:skia_private" ] |
| 21 | deps = [ "../..:skia" ] |
| 22 | } |
| 23 | |
| 24 | if (defined(is_skia_standalone)) { |
| 25 | if (skia_enable_tools) { |
| 26 | source_set("tests") { |
| 27 | testonly = true |
| 28 | |
| 29 | configs += [ |
| 30 | "../..:skia_private", |
| 31 | "../..:tests_config", |
| 32 | ] |
Florin Malita | 1da2556 | 2020-06-11 11:07:15 -0400 | [diff] [blame] | 33 | sources = [ |
| 34 | "tests/BinaryReader.cpp", |
Florin Malita | 579e63a | 2020-06-19 14:21:33 -0400 | [diff] [blame] | 35 | "tests/DomTypes.cpp", |
Florin Malita | 1da2556 | 2020-06-11 11:07:15 -0400 | [diff] [blame] | 36 | "tests/JsonReader.cpp", |
| 37 | ] |
Florin Malita | 26ae40f | 2020-06-08 12:03:48 -0400 | [diff] [blame] | 38 | |
| 39 | deps = [ |
| 40 | ":skrive", |
| 41 | "../..:gpu_tool_utils", |
| 42 | "../..:skia", |
| 43 | ] |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | } else { |
| 48 | group("skrive") { |
| 49 | } |
| 50 | group("tests") { |
| 51 | } |
| 52 | } |