BUILD.gn 935 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. declare_args() {
  7. skia_enable_skshaper = !(is_win && is_component_build)
  8. }
  9. if (skia_enable_skshaper) {
  10. config("public_config") {
  11. include_dirs = [ "include" ]
  12. defines = []
  13. if (skia_use_icu) {
  14. defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
  15. }
  16. }
  17. component("skshaper") {
  18. check_includes = false
  19. import("skshaper.gni")
  20. public_configs = [ ":public_config" ]
  21. public = skia_shaper_public
  22. deps = [
  23. "../..:skia",
  24. ]
  25. sources = skia_shaper_primitive_sources
  26. if (skia_use_icu && skia_use_harfbuzz) {
  27. sources += skia_shaper_harfbuzz_sources
  28. deps += [
  29. "//third_party/harfbuzz",
  30. "//third_party/icu",
  31. ]
  32. }
  33. configs += [ "../../:skia_private" ]
  34. }
  35. } else {
  36. group("skshaper") {
  37. }
  38. }