Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: skia/BUILD.gn

Issue 1685053002: blink fonts: Load Android SkFontMgr on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@windows_change
Patch Set: Rebase. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/zygote/zygote_main_linux.cc ('k') | skia/skia_library.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 9df119e7e0b5e2ed11fedf8b14ae7e376ac16f1b..1949ddb3ad9a8a0323ebba63b81c283a0341567c 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -417,6 +417,15 @@ component("skia") {
]
}
+ # Add the files for the SkFontMgr_Android. This is used to emulate android
+ # fonts on linux. See content/zygote/zygote_main_linux.cc
+ if (is_linux) {
+ sources += [
+ "//third_party/skia/src/ports/SkFontMgr_android.cpp",
+ "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
+ ]
+ }
+
if (!is_linux && !is_android) {
sources -= [
"//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
@@ -464,6 +473,7 @@ component("skia") {
deps += [
"//build/linux:fontconfig",
"//build/linux:freetype2",
+ "//third_party/expat",
"//third_party/icu:icuuc",
]
}
« no previous file with comments | « content/zygote/zygote_main_linux.cc ('k') | skia/skia_library.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698