blob: 4f77a546d4f4ad3a646ab63576b7710886f4ce2c [file] [log] [blame]
Florin Malita26ae40f2020-06-08 12:03:48 -04001# 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
6import("../../gn/skia.gni")
7
8if (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 Malita1da25562020-06-11 11:07:15 -040033 sources = [
34 "tests/BinaryReader.cpp",
Florin Malita579e63a2020-06-19 14:21:33 -040035 "tests/DomTypes.cpp",
Florin Malita1da25562020-06-11 11:07:15 -040036 "tests/JsonReader.cpp",
37 ]
Florin Malita26ae40f2020-06-08 12:03:48 -040038
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}