summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-15 17:47:57 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 17:47:57 +0000
commitd7f51c715146be53186b25ca677e49e164b51527 (patch)
tree12dbfec2a73fe42bb97ea610d9023972a3361b80 /BUILD.gn
parent7239fe9c9e52fa8f921a4acb9ea4a11bc58e64d7 (diff)
downloadpdfium-d7f51c715146be53186b25ca677e49e164b51527.tar.xz
Make fpdfsdk/ pass gn check.
Use allow_circular_includes_from as a crutch for now. Change-Id: I58e90da4b71a22dd54fd59e8d644b6eef740d4cd Reviewed-on: https://pdfium-review.googlesource.com/c/43988 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn14
1 files changed, 14 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 3faf5cd18e..c9cd7b09a2 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -156,11 +156,25 @@ jumbo_static_library("pdfium") {
"third_party:pdfium_base",
"third_party:skia_shared",
]
+ allow_circular_includes_from = [
+ "fpdfsdk",
+ "fpdfsdk/formfiller",
+ "fpdfsdk/pwl",
+ ]
public_deps = [
"core/fxcrt",
]
+ if (pdf_enable_xfa) {
+ deps += [
+ "fpdfsdk/fpdfxfa",
+ "xfa/fxfa",
+ "xfa/fxfa/parser",
+ ]
+ allow_circular_includes_from += [ "fpdfsdk/fpdfxfa" ]
+ }
+
if (is_win) {
libs += [
"advapi32.lib",