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

Side by Side Diff: third_party/freetype/BUILD.gn

Issue 2896203002: Do not build FreeType with HarfBuzz support on Android (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/freetype/include/freetype-custom-config/ftoption.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/freetype/freetype.gni") 6 import("//build/config/freetype/freetype.gni")
7 import("//third_party/harfbuzz-ng/harfbuzz.gni") 7 import("//third_party/harfbuzz-ng/harfbuzz.gni")
8 8
9 config("freetype_config") { 9 config("freetype_config") {
10 include_dirs = [ 10 include_dirs = [
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 if (!is_android) { 114 if (!is_android) {
115 sources += [ 115 sources += [
116 "src/src/cid/type1cid.c", 116 "src/src/cid/type1cid.c",
117 "src/src/psaux/psaux.c", 117 "src/src/psaux/psaux.c",
118 "src/src/type1/type1.c", 118 "src/src/type1/type1.c",
119 ] 119 ]
120 120
121 # Selects those three modules in freetype-custom-config/ftmodule.h. 121 # Selects those three modules in freetype-custom-config/ftmodule.h.
122 defines += [ "PDFIUM_REQUIRED_MODULES" ] 122 defines += [ "PDFIUM_REQUIRED_MODULES" ]
123 } else {
124 # Using HarfBuzz assisted autohinting has a performance impact that we do no t
Dirk Pranke 2017/05/23 19:26:38 Nit: fix the line length / wrapping.
125 # want to take on Android, see crbug.com/724095.
126 defines += [ "WITHOUT_HARFBUZZ" ]
123 } 127 }
124 128
125 if (is_linux || is_chromecast) { 129 if (is_linux || is_chromecast) {
126 # Needed for content_shell on Linux and Chromecast, since fontconfig 130 # Needed for content_shell on Linux and Chromecast, since fontconfig
127 # requires FT_Get_BDF_Property. 131 # requires FT_Get_BDF_Property.
128 sources += [ "src/src/base/ftbdf.c" ] 132 sources += [ "src/src/base/ftbdf.c" ]
129 } 133 }
130 134
131 if (is_linux || is_chromecast) { 135 if (is_linux || is_chromecast) {
132 # Needed on Fedora whose libfreetype builds ftsynth.c containing 136 # Needed on Fedora whose libfreetype builds ftsynth.c containing
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 "//third_party/zlib", 171 "//third_party/zlib",
168 ] 172 ]
169 173
170 if (!use_system_freetype) { 174 if (!use_system_freetype) {
171 deps += [ 175 deps += [
172 ":bootstrap_freetype_for_harfbuzz" 176 ":bootstrap_freetype_for_harfbuzz"
173 ] 177 ]
174 } 178 }
175 179
176 if (!use_system_harfbuzz) { 180 if (!use_system_harfbuzz) {
177 deps += [ 181 if (!is_android) {
178 "//third_party/harfbuzz-ng:harfbuzz-ng-ft", 182 # See "WITHOUT_HARFBUZZ" above, harfbuzz-ng-ft is only needed if we build
179 "//third_party/harfbuzz-ng:harfbuzz-ng-without-freetype", 183 # FreeType with HarfBuzz support.
180 ] 184 deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng-ft" ]
185 }
186 deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng-without-freetype" ]
181 } else { 187 } else {
182 deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng" ] 188 deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng" ]
183 } 189 }
184 } 190 }
OLDNEW
« no previous file with comments | « no previous file | third_party/freetype/include/freetype-custom-config/ftoption.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698