From d7f51c715146be53186b25ca677e49e164b51527 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 15 Oct 2018 17:47:57 +0000 Subject: 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 Reviewed-by: Tom Sepez --- BUILD.gn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'BUILD.gn') 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", -- cgit v1.2.3