summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-15 23:12:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 23:12:06 +0000
commit1987bbfdbcc15e6954aa1340d1a55fda4a532914 (patch)
tree471233ae881d13925c69c1ae2def16fa8ace0953 /BUILD.gn
parent6735139528c4239d4a88c02004d2671c27418020 (diff)
downloadpdfium-1987bbfdbcc15e6954aa1340d1a55fda4a532914.tar.xz
Split public/ headers into their own source_set.
This removes some allow_circular_includes_from entries. Change-Id: I276d211a0f45f460b4814560533f0cb83d681613 Reviewed-on: https://pdfium-review.googlesource.com/c/43994 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn55
1 files changed, 28 insertions, 27 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 65d9b3360b..14cf737a88 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -91,6 +91,32 @@ config("pdfium_core_config") {
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
}
+jumbo_source_set("pdfium_public_headers") {
+ sources = [
+ "public/cpp/fpdf_deleters.h",
+ "public/cpp/fpdf_scopers.h",
+ "public/fpdf_annot.h",
+ "public/fpdf_attachment.h",
+ "public/fpdf_catalog.h",
+ "public/fpdf_dataavail.h",
+ "public/fpdf_doc.h",
+ "public/fpdf_edit.h",
+ "public/fpdf_ext.h",
+ "public/fpdf_flatten.h",
+ "public/fpdf_formfill.h",
+ "public/fpdf_fwlevent.h",
+ "public/fpdf_ppo.h",
+ "public/fpdf_progressive.h",
+ "public/fpdf_save.h",
+ "public/fpdf_searchex.h",
+ "public/fpdf_structtree.h",
+ "public/fpdf_sysfontinfo.h",
+ "public/fpdf_text.h",
+ "public/fpdf_transformpage.h",
+ "public/fpdfview.h",
+ ]
+}
+
jumbo_static_library("pdfium") {
sources = [
"fpdfsdk/fpdf_annot.cpp",
@@ -114,33 +140,13 @@ jumbo_static_library("pdfium") {
"fpdfsdk/fpdf_text.cpp",
"fpdfsdk/fpdf_transformpage.cpp",
"fpdfsdk/fpdf_view.cpp",
- "public/cpp/fpdf_deleters.h",
- "public/cpp/fpdf_scopers.h",
- "public/fpdf_annot.h",
- "public/fpdf_attachment.h",
- "public/fpdf_catalog.h",
- "public/fpdf_dataavail.h",
- "public/fpdf_doc.h",
- "public/fpdf_edit.h",
- "public/fpdf_ext.h",
- "public/fpdf_flatten.h",
- "public/fpdf_formfill.h",
- "public/fpdf_fwlevent.h",
- "public/fpdf_ppo.h",
- "public/fpdf_progressive.h",
- "public/fpdf_save.h",
- "public/fpdf_searchex.h",
- "public/fpdf_structtree.h",
- "public/fpdf_sysfontinfo.h",
- "public/fpdf_text.h",
- "public/fpdf_transformpage.h",
- "public/fpdfview.h",
]
libs = []
configs += [ ":pdfium_core_config" ]
deps = [
+ ":pdfium_public_headers",
"constants",
"core/fdrm",
"core/fpdfapi",
@@ -161,13 +167,9 @@ jumbo_static_library("pdfium") {
"third_party:pdfium_base",
"third_party:skia_shared",
]
- allow_circular_includes_from = [
- "fpdfsdk",
- "fpdfsdk/formfiller",
- "fpdfsdk/pwl",
- ]
public_deps = [
+ ":pdfium_public_headers",
"core/fxcrt",
]
@@ -178,7 +180,6 @@ jumbo_static_library("pdfium") {
"xfa/fxfa",
"xfa/fxfa/parser",
]
- allow_circular_includes_from += [ "fpdfsdk/fpdfxfa" ]
}
if (is_win) {