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

Unified Diff: third_party/freetype/BUILD.gn

Issue 2800393002: Do not build type1, type1cid and psaux FreeType modules on Android (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | third_party/freetype/include/freetype-custom-config/ftmodule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/freetype/BUILD.gn
diff --git a/third_party/freetype/BUILD.gn b/third_party/freetype/BUILD.gn
index 7ec319a1d88087ffa0033a267b90771754b7149a..2908f913afd2a58930626ddffda9a63bf0ed4a6e 100644
--- a/third_party/freetype/BUILD.gn
+++ b/third_party/freetype/BUILD.gn
@@ -34,6 +34,8 @@ component("freetype") {
output_extension = "so.6"
}
+ defines = []
+
sources = [
"include/freetype-custom-config/ftmodule.h",
"include/freetype-custom-config/ftoption.h",
@@ -52,18 +54,26 @@ component("freetype") {
"src/src/base/ftsystem.c",
"src/src/base/fttype1.c",
"src/src/cff/cff.c",
- "src/src/cid/type1cid.c",
"src/src/gzip/ftgzip.c",
- "src/src/psaux/psaux.c",
"src/src/pshinter/pshinter.c",
"src/src/psnames/psnames.c",
"src/src/raster/raster.c",
"src/src/sfnt/sfnt.c",
"src/src/smooth/smooth.c",
"src/src/truetype/truetype.c",
- "src/src/type1/type1.c",
]
+ if (!is_android) {
+ sources += [
+ "src/src/cid/type1cid.c",
+ "src/src/psaux/psaux.c",
+ "src/src/type1/type1.c",
+ ]
+
+ # Selects those three modules in freetype-custom-config/ftmodule.h.
+ defines += [ "PDFIUM_REQUIRED_MODULES" ]
+ }
+
if (is_linux || is_chromecast) {
# Needed for content_shell on Linux and Chromecast, since fontconfig
# requires FT_Get_BDF_Property.
@@ -77,7 +87,7 @@ component("freetype") {
sources += [ "src/src/base/ftsynth.c" ]
}
- defines = [
+ defines += [
"FT2_BUILD_LIBRARY",
"DARWIN_NO_CARBON",
« no previous file with comments | « no previous file | third_party/freetype/include/freetype-custom-config/ftmodule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698