unbundle-fix-visibility-of-build-config-freetype.patch 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. From 271e45339b7b969e98ccef7837cb1b15480b07fc Mon Sep 17 00:00:00 2001
  2. From: Stephan Hartmann <stha09@googlemail.com>
  3. Date: Thu, 4 Nov 2021 18:58:34 +0000
  4. Subject: [PATCH] unbundle: fix visibility of //build/config/freetype
  5. For system freetype //build/linux:freetype_from_pkgconfig is restricted
  6. to //third_party:freetype_harfbuzz and //third_party/harfbuzz-ng:harfbuzz_source.
  7. However //build/config/freetype:freetype is accessing it too.
  8. Bug: None
  9. Change-Id: Ic4a37b01e4ae221372a9220cbad04c598b844c21
  10. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3259304
  11. Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
  12. Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
  13. Cr-Commit-Position: refs/heads/main@{#938388}
  14. ---
  15. build/linux/BUILD.gn | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/build/linux/BUILD.gn b/build/linux/BUILD.gn
  18. index 54314c7687..cd49e3d524 100644
  19. --- a/build/linux/BUILD.gn
  20. +++ b/build/linux/BUILD.gn
  21. @@ -23,6 +23,7 @@ if (use_system_freetype) {
  22. # the system, use with caution,for details see build/config/freetype/BUILD.gn.
  23. pkg_config("freetype_from_pkgconfig") {
  24. visibility = [
  25. + "//build/config/freetype:freetype",
  26. "//third_party:freetype_harfbuzz",
  27. "//third_party/harfbuzz-ng:harfbuzz_source",
  28. ]