summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorLei Zhang <thestig@google.com>2014-12-19 21:21:35 -0800
committerLei Zhang <thestig@google.com>2014-12-19 21:21:35 -0800
commit59dffb68f07c7ce583285a23ad580b768ce3cd3e (patch)
tree8fbff6001265764e7fc025648dff733d2c0a2291 /third_party
parent06b087a3306a521db0d9d0a3e28c3ad0040c7055 (diff)
downloadpdfium-59dffb68f07c7ce583285a23ad580b768ce3cd3e.tar.xz
Fix new third_party/BUILD.gn to use the right build configuration.
TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/817813004
Diffstat (limited to 'third_party')
-rw-r--r--third_party/BUILD.gn19
1 files changed, 14 insertions, 5 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 2c889afb0e..e6340c6401 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -11,6 +11,11 @@ group("third_party") {
}
static_library("bigint") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//third_party/pdfium:pdfium_config",
+ "//build/config/compiler:no_chromium_code",
+ ]
sources = [
"bigint/BigInteger.hh",
"bigint/BigIntegerLibrary.hh",
@@ -26,11 +31,10 @@ static_library("bigint") {
}
static_library("freetype") {
- defines = [
- "FT2_BUILD_LIBRARY",
- ]
- include_dirs = [
- "freetype/include",
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//third_party/pdfium:pdfium_config",
+ "//build/config/compiler:no_chromium_code",
]
sources = [
"freetype/include/freetype.h",
@@ -65,6 +69,11 @@ static_library("freetype") {
}
component("safemath") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//third_party/pdfium:pdfium_config",
+ "//build/config/compiler:no_chromium_code",
+ ]
sources = [
"logging.h",
"macros.h",