diff options
author | Bruce Dawson <brucedawson@chromium.org> | 2017-08-10 16:07:07 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-10 23:43:09 +0000 |
commit | d27998f6526272a5b8732106aa9b75f724434aca (patch) | |
tree | 2caa5881be9a41fd9d87e2bbfa105aa0c58ecb6c | |
parent | fdc3acb42a7983053c53d1445c62654d7ef6b3b2 (diff) | |
download | pdfium-chromium/3184.tar.xz |
Fix component builds for FreeType changeschromium/3184chromium/3183
FreeType has changed so it doesn't define ft_adobe_glyph_list once for
every translation unit, which avoids wasting space in the data segment
with duplicates. However Chromium component builds were depending on
this behavior. This fixes component builds while avoiding duplicate
arrays in non-component builds.
This change makes no difference to pdfium at the moment but will
probably be needed when it gains support for component builds.
Change-Id: Ieed7c711bdbd3fa6eef19da60e906667dab8fb1b
Reviewed-on: https://pdfium-review.googlesource.com/10670
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
-rw-r--r-- | BUILD.gn | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1070,6 +1070,11 @@ static_library("fxge") { ] defines = [ "DEFINE_PS_TABLES" ] + if (is_component_build) { + # ft_adobe_glyph_list is not exported from the Freetype shared library so we + # need it defined in component builds. + defines += [ "DEFINE_PS_TABLES_DATA" ] + } if (pdf_enable_xfa) { sources += [ |