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 6import("../../gn/skia.gni") 7 8config("public_config") { 9 include_dirs = [ "include" ] 10} 11 12component("sksg") { 13 import("sksg.gni") 14 public_configs = [ ":public_config" ] 15 sources = skia_sksg_sources 16 configs += [ "../../:skia_private" ] 17 deps = [ 18 "../..:skia", 19 ] 20} 21 22if (defined(is_skia_standalone) && skia_enable_tools) { 23 source_set("tests") { 24 testonly = true 25 26 configs += [ 27 "../..:skia_private", 28 "../..:tests_config", # TODO: refactor to make this nicer 29 ] 30 sources = [ 31 "tests/SGTest.cpp", 32 ] 33 deps = [ 34 ":sksg", 35 "../..:gpu_tool_utils", # TODO: refactor to make this nicer 36 "../..:skia", 37 ] 38 } 39 40 source_set("samples") { 41 if (target_cpu != "wasm") { # TODO: clean up wasm test 42 testonly = true 43 44 configs += [ 45 "../..:skia_private", 46 "../..:samples_config", # TODO: refactor to make this nicer 47 ] 48 sources = [ 49 "samples/SampleSVGPong.cpp", 50 ] 51 deps = [ 52 ":sksg", 53 "../..:samples", 54 "../..:skia", 55 ] 56 } 57 } 58} 59