| 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",
|
|
|
|
|