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 12skia_component("sksg") { 13 check_includes = false 14 import("sksg.gni") 15 public_configs = [ ":public_config" ] 16 sources = skia_sksg_sources 17 configs = [ "../../:skia_private" ] 18 deps = [ "../..:skia" ] 19} 20 21if (defined(is_skia_standalone) && skia_enable_tools) { 22 skia_source_set("tests") { 23 testonly = true 24 25 configs = [ "../..:skia_private" ] 26 sources = [ "tests/SGTest.cpp" ] 27 deps = [ 28 ":sksg", 29 "../..:skia", 30 "../..:test", 31 ] 32 } 33 34 skia_source_set("samples") { 35 if (target_cpu != "wasm") { # TODO: clean up wasm test 36 testonly = true 37 38 configs = [ 39 "../..:skia_private", 40 "../..:samples_config", # TODO: refactor to make this nicer 41 ] 42 sources = [ "samples/SampleSVGPong.cpp" ] 43 deps = [ 44 ":sksg", 45 "../..:samples", 46 "../..:skia", 47 ] 48 } 49 } 50} 51