summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-12 17:03:10 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-12 17:03:10 +0000
commit29b708e7af32de30d946b4bb609b390187987cb5 (patch)
tree3985f745bc8c80bd5bd5f163603f9a59f438d3dd /third_party
parent0f567261d33a70860bb3ec3db4cf1185df1a9a54 (diff)
downloadpdfium-29b708e7af32de30d946b4bb609b390187987cb5.tar.xz
Mark the bigint target as XFA only.chromium/3579
Depend on it directly from the only user, fxbarcode. Change-Id: I303dc7b0e713d683257fb3d893e74fdd40ac2046 Reviewed-on: https://pdfium-review.googlesource.com/c/43939 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/BUILD.gn39
1 files changed, 20 insertions, 19 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 674a847942..c66ae9e34c 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -10,7 +10,6 @@ import("../pdfium.gni")
group("third_party") {
deps = [
- ":bigint",
":pdfium_base",
":skia_shared",
]
@@ -23,24 +22,26 @@ config("pdfium_third_party_config") {
configs = [ "..:pdfium_common_config" ]
}
-source_set("bigint") {
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":pdfium_third_party_config",
- ]
- sources = [
- "bigint/BigInteger.cc",
- "bigint/BigInteger.hh",
- "bigint/BigIntegerLibrary.hh",
- "bigint/BigIntegerUtils.cc",
- "bigint/BigIntegerUtils.hh",
- "bigint/BigUnsigned.cc",
- "bigint/BigUnsigned.hh",
- "bigint/BigUnsignedInABase.cc",
- "bigint/BigUnsignedInABase.hh",
- "bigint/NumberlikeArray.hh",
- ]
+if (pdf_enable_xfa) {
+ source_set("bigint") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ ":pdfium_third_party_config",
+ ]
+ sources = [
+ "bigint/BigInteger.cc",
+ "bigint/BigInteger.hh",
+ "bigint/BigIntegerLibrary.hh",
+ "bigint/BigIntegerUtils.cc",
+ "bigint/BigIntegerUtils.hh",
+ "bigint/BigUnsigned.cc",
+ "bigint/BigUnsigned.hh",
+ "bigint/BigUnsignedInABase.cc",
+ "bigint/BigUnsignedInABase.hh",
+ "bigint/NumberlikeArray.hh",
+ ]
+ }
}
if (pdf_bundle_freetype) {