BUILD.gn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Copyright 2015 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/features.gni")
  5. import("//pdf/features.gni")
  6. import("//testing/test.gni")
  7. source_set("lib") {
  8. sources = [
  9. "font_service_app.cc",
  10. "font_service_app.h",
  11. "fontconfig_matching.cc",
  12. "fontconfig_matching.h",
  13. ]
  14. deps = [
  15. "//base",
  16. "//build:chromeos_buildflags",
  17. "//components/services/font/public/mojom",
  18. "//mojo/public/cpp/bindings",
  19. "//mojo/public/cpp/system",
  20. "//pdf:buildflags",
  21. "//third_party/fontconfig",
  22. "//ui/gfx",
  23. ]
  24. public_deps = [ "//skia" ]
  25. if (enable_pdf && (is_linux || is_chromeos)) {
  26. sources += [
  27. "pdf_fontconfig_matching.cc",
  28. "pdf_fontconfig_matching.h",
  29. ]
  30. deps += [
  31. "//third_party/blink/public:blink_headers",
  32. "//third_party/pdfium:pdfium_public_headers",
  33. ]
  34. }
  35. }
  36. test("font_service_unittests") {
  37. sources = [ "font_loader_unittest.cc" ]
  38. deps = [
  39. ":lib",
  40. "//base",
  41. "//base/test:test_support",
  42. "//components/services/font/public/cpp",
  43. "//components/services/font/public/mojom",
  44. "//mojo/core/test:run_all_unittests",
  45. "//mojo/public/cpp/bindings",
  46. "//mojo/public/cpp/system",
  47. "//pdf:buildflags",
  48. "//skia",
  49. "//testing/gtest",
  50. ]
  51. if (enable_pdf) {
  52. deps += [
  53. "//third_party:freetype_harfbuzz",
  54. "//third_party/pdfium:pdfium_public_headers",
  55. ]
  56. }
  57. }