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 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 ] 33 sources = [ 34 "tests/BinaryReader.cpp", 35 "tests/DomTypes.cpp", 36 "tests/JsonReader.cpp", 37 ] 38 39 deps = [ 40 ":skrive", 41 "../..:skia", 42 "../..:test", 43 ] 44 } 45 } 46 } 47} else { 48 group("skrive") { 49 } 50 group("tests") { 51 } 52} 53