Index: build/linux/BUILD.gn |
diff --git a/build/linux/BUILD.gn b/build/linux/BUILD.gn |
index 6a1939dd15b933f40123dd6992facfddc3ccb976..292856ccdcf4f973019911e1625922eb1f19a6fd 100644 |
--- a/build/linux/BUILD.gn |
+++ b/build/linux/BUILD.gn |
@@ -11,6 +11,7 @@ gypi_values = exec_script("//build/gypi_to_gn.py", |
"scope", |
[ "system.gyp" ]) |
+# Chromecast platform does not provide fontconfig |
use_system_fontconfig = !is_chromecast |
# If brlapi isn't needed, don't require it to be installed. |
@@ -115,3 +116,15 @@ group("fontconfig") { |
] |
} |
} |
+ |
+group("freetype2") { |
+ if (is_chromecast) { |
+ # Chromecast platform doesn't provide freetype, so use Chromium's. |
+ # The version in freetype-android is unmodified from freetype2 upstream. |
+ public_deps = [ |
+ "//third_party/freetype-android:freetype", |
+ ] |
+ } else { |
+ public_configs = [ "//build/config/linux:freetype2" ] |
+ } |
+} |