summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn5
1 files changed, 3 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index cd2b0b05db..846e8a5ec8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/freetype/freetype.gni")
import("//testing/test.gni")
import("pdfium.gni")
@@ -1070,9 +1071,9 @@ static_library("fxge") {
]
defines = [ "DEFINE_PS_TABLES" ]
- if (is_component_build) {
+ if (is_component_build || use_system_freetype) {
# ft_adobe_glyph_list is not exported from the Freetype shared library so we
- # need it defined in component builds.
+ # need it defined in component builds and builds using system freetype.
defines += [ "DEFINE_PS_TABLES_DATA" ]
}