summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn4
-rw-r--r--pdfium.gyp10
2 files changed, 4 insertions, 10 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 9c58b0396c..b52913b977 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -14,6 +14,7 @@ declare_args() {
config("pdfium_config") {
cflags = []
+ include_dirs = [ "third_party/freetype/include" ]
defines = [
"_FPDFSDK_LIB",
"_NO_GDIPLUS_", # workaround text rendering issues on Windows
@@ -44,10 +45,7 @@ config("pdfium_config") {
}
if (bundle_freetype) {
- include_dirs = [ "third_party/freetype/include" ]
defines += [ "FT2_BUILD_LIBRARY" ]
- } else {
- include_dirs = [ "/usr/include/freetype2" ]
}
}
diff --git a/pdfium.gyp b/pdfium.gyp
index 8b13321ab9..2b21e9d9aa 100644
--- a/pdfium.gyp
+++ b/pdfium.gyp
@@ -16,21 +16,17 @@
'_NO_GDIPLUS_', # workaround text rendering issues on Windows
'OPJ_STATIC',
],
+ 'include_dirs': [
+ 'third_party/freetype/include',
+ ],
'conditions': [
['pdf_use_skia==1', {
'defines': ['_SKIA_SUPPORT_'],
}],
['bundle_freetype==1', {
- 'include_dirs': [
- 'third_party/freetype/include',
- ],
'defines' : [
'FT2_BUILD_LIBRARY',
],
- }, {
- 'include_dirs' : [
- '/usr/include/freetype2',
- ],
}],
['OS=="linux"', {
'conditions': [