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 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 source_set("tests") { 23 testonly = true 24 25 configs += [ 26 "../..:skia_private", 27 "../..:tests_config", # TODO: refactor to make this nicer 28 ] 29 sources = [ "tests/SGTest.cpp" ] 30 deps = [ 31 ":sksg", 32 "../..:gpu_tool_utils", # TODO: refactor to make this nicer 33 "../..:skia", 34 ] 35 } 36 37 source_set("samples") { 38 if (target_cpu != "wasm") { # TODO: clean up wasm test 39 testonly = true 40 41 configs += [ 42 "../..:skia_private", 43 "../..:samples_config", # TODO: refactor to make this nicer 44 ] 45 sources = [ "samples/SampleSVGPong.cpp" ] 46 deps = [ 47 ":sksg", 48 "../..:samples", 49 "../..:skia", 50 ] 51 } 52 } 53} 54