Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |