Index: third_party/freetype-android/BUILD.gn |
diff --git a/third_party/freetype-android/BUILD.gn b/third_party/freetype-android/BUILD.gn |
index 439216228e589c147706c9a9c2abc89272cc5fdf..acca85a5c719d8d72dac6882179605cee16e0166 100644 |
--- a/third_party/freetype-android/BUILD.gn |
+++ b/third_party/freetype-android/BUILD.gn |
@@ -2,7 +2,10 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-assert(is_android, "This library is only used on Android") |
+import("//build/config/chromecast_build.gni") |
+ |
+assert(is_android || is_chromecast, |
+ "This library is only used on Android or Chromecast") |
config("freetype_config") { |
include_dirs = [ |
@@ -39,6 +42,10 @@ source_set("freetype") { |
"src/src/truetype/truetype.c", |
] |
+ if (is_chromecast) { |
+ sources += [ "src/src/base/ftbdf.c" ] |
+ } |
+ |
defines = [ |
"FT2_BUILD_LIBRARY", |
"DARWIN_NO_CARBON", |