summaryrefslogtreecommitdiff
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
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>
-rw-r--r--.gn2
-rw-r--r--BUILD.gn14
-rw-r--r--fpdfsdk/BUILD.gn22
-rw-r--r--fpdfsdk/formfiller/BUILD.gn7
-rw-r--r--fpdfsdk/fpdfxfa/BUILD.gn7
-rw-r--r--fpdfsdk/pwl/BUILD.gn7
-rw-r--r--fxjs/BUILD.gn1
-rw-r--r--xfa/BUILD.gn13
8 files changed, 57 insertions, 16 deletions
diff --git a/.gn b/.gn
index 1d4f5fc276..764e08c3a0 100644
--- a/.gn
+++ b/.gn
@@ -18,6 +18,7 @@ default_args = {
check_targets = [
"//core/fxcrt/*",
+ "//fpdfsdk/*",
"//fxbarcode/*",
"//samples/*",
"//testing/:*",
@@ -27,6 +28,5 @@ check_targets = [
# TODO(thestig): Work on these.
#"//core/*",
- #"//fpdfsdk/*",
#"//fxjs/*",
]
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",
diff --git a/fpdfsdk/BUILD.gn b/fpdfsdk/BUILD.gn
index f4df1d54cd..cf1fdbf85b 100644
--- a/fpdfsdk/BUILD.gn
+++ b/fpdfsdk/BUILD.gn
@@ -51,7 +51,20 @@ jumbo_source_set("fpdfsdk") {
configs += [ "../:pdfium_core_config" ]
deps = [
+ "../core/fpdfapi",
+ "../core/fpdfapi/page",
+ "../core/fpdfapi/parser",
+ "../core/fpdfapi/render",
+ "../core/fpdfdoc",
"../core/fxcrt",
+ "../core/fxge",
+ "../fxjs",
+ "formfiller",
+ "pwl",
+ ]
+ allow_circular_includes_from = [
+ "formfiller",
+ "pwl",
]
visibility = [ "../*" ]
@@ -63,6 +76,13 @@ jumbo_source_set("fpdfsdk") {
"cpdfsdk_xfawidgethandler.h",
]
- deps += [ "fpdfxfa" ]
+ deps += [
+ "../xfa/fwl",
+ "../xfa/fxfa",
+ "../xfa/fxfa/parser",
+ "../xfa/fxgraphics",
+ "fpdfxfa",
+ ]
+ allow_circular_includes_from += [ "fpdfxfa" ]
}
}
diff --git a/fpdfsdk/formfiller/BUILD.gn b/fpdfsdk/formfiller/BUILD.gn
index a9994ee1c1..434e58085e 100644
--- a/fpdfsdk/formfiller/BUILD.gn
+++ b/fpdfsdk/formfiller/BUILD.gn
@@ -32,7 +32,14 @@ jumbo_source_set("formfiller") {
]
configs += [ "../../:pdfium_core_config" ]
deps = [
+ "../../core/fpdfapi/font",
+ "../../core/fpdfapi/page",
+ "../../core/fpdfapi/parser",
+ "../../core/fpdfdoc",
"../../core/fxcrt",
+ "../../core/fxge",
+ "../pwl",
]
+ allow_circular_includes_from = [ "../pwl" ]
visibility = [ "../../*" ]
}
diff --git a/fpdfsdk/fpdfxfa/BUILD.gn b/fpdfsdk/fpdfxfa/BUILD.gn
index bca6f67884..baa615db46 100644
--- a/fpdfsdk/fpdfxfa/BUILD.gn
+++ b/fpdfsdk/fpdfxfa/BUILD.gn
@@ -19,9 +19,14 @@ jumbo_source_set("fpdfxfa") {
"cxfa_fwladaptertimermgr.h",
]
deps = [
+ "../../core/fpdfapi/page",
+ "../../core/fpdfapi/parser",
"../../core/fxcrt",
"../../fxjs",
- "../../xfa",
+ "../../xfa/fgas",
+ "../../xfa/fwl",
+ "../../xfa/fxfa",
+ "../../xfa/fxfa/parser",
]
configs += [ "../../:pdfium_core_config" ]
visibility = [ "../../*" ]
diff --git a/fpdfsdk/pwl/BUILD.gn b/fpdfsdk/pwl/BUILD.gn
index 7c33196788..c5e02685e8 100644
--- a/fpdfsdk/pwl/BUILD.gn
+++ b/fpdfsdk/pwl/BUILD.gn
@@ -42,7 +42,14 @@ jumbo_source_set("pwl") {
]
configs += [ "../../:pdfium_core_config" ]
deps = [
+ "../../core/fpdfapi",
+ "../../core/fpdfapi/font",
+ "../../core/fpdfapi/page",
+ "../../core/fpdfapi/parser",
+ "../../core/fpdfapi/render",
+ "../../core/fpdfdoc",
"../../core/fxcrt",
+ "../../core/fxge",
]
visibility = [ "../../*" ]
}
diff --git a/fxjs/BUILD.gn b/fxjs/BUILD.gn
index 96c3c6df2f..a197d78f13 100644
--- a/fxjs/BUILD.gn
+++ b/fxjs/BUILD.gn
@@ -435,6 +435,7 @@ jumbo_source_set("fxjs") {
"xfa/cjx_xsdconnection.cpp",
"xfa/cjx_xsdconnection.h",
]
+ deps += [ "../xfa/fxfa/fm2js" ]
}
}
}
diff --git a/xfa/BUILD.gn b/xfa/BUILD.gn
index 3453a40f78..df297373a9 100644
--- a/xfa/BUILD.gn
+++ b/xfa/BUILD.gn
@@ -12,16 +12,3 @@ config("xfa_warnings") {
cflags = [ "-Wno-strict-overflow" ]
}
}
-
-group("xfa") {
- deps = [
- "fde",
- "fgas",
- "fwl",
- "fxfa",
- "fxfa/fm2js",
- "fxfa/parser",
- "fxgraphics",
- ]
- visibility = [ "../*" ]
-}