BUILD.gn 1.2 KB

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