summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/BUILD.gn14
1 files changed, 12 insertions, 2 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 2055821f8e..a24e99e7f0 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -46,12 +46,19 @@ config("fx_freetype_warnings") {
#
# ttgload.c casts from unsigned int to unsigned long to void*.
cflags = [
- "-Wno-unused-function",
- "-Wno-int-to-void-pointer-cast",
+ "-Wno-unused-function",
+ "-Wno-int-to-void-pointer-cast",
]
}
}
+config("freetype_public_includes_config") {
+ include_dirs = [
+ "freetype/include",
+ "freetype/src/include",
+ ]
+}
+
# Tests may link against this even if the production library doesn't,
# so it needs to be separate from it.
static_library("fx_freetype") {
@@ -63,6 +70,9 @@ static_library("fx_freetype") {
# Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_freetype_warnings",
]
+
+ public_configs = [ ":freetype_public_includes_config" ]
+
defines = [ "FT2_BUILD_LIBRARY" ]
sources = [
"freetype/include/freetype/config/ftconfig.h",