Minimize absl dependencies
Instead of depending on the main //third_party/abseil-cpp:absl target,
only depend on the parts of absl that are used. This shaves 100+ build
operations, and is likely not hard to maintain since PDFium rarely adds
new absl usage.
Change-Id: I3adf01886320bcee409b8eb1f7784553d86bbc3c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/122950
Reviewed-by: Tom Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfapi/page/BUILD.gn b/core/fpdfapi/page/BUILD.gn
index f6bbd74..235c2b3 100644
--- a/core/fpdfapi/page/BUILD.gn
+++ b/core/fpdfapi/page/BUILD.gn
@@ -117,6 +117,7 @@
"../../fxcodec",
"../../fxcrt",
"../font",
+ "//third_party/abseil-cpp/absl/container:inlined_vector",
]
allow_circular_includes_from = []
if (pdf_use_skia) {
diff --git a/core/fxcrt/BUILD.gn b/core/fxcrt/BUILD.gn
index cba3e5c..70b250b 100644
--- a/core/fxcrt/BUILD.gn
+++ b/core/fxcrt/BUILD.gn
@@ -148,7 +148,7 @@
]
public_deps = [
"../../:freetype_common",
- "//third_party/abseil-cpp:absl",
+ "//third_party/abseil-cpp/absl/types:variant",
"//third_party/icu:icuuc",
]
if (pdf_use_partition_alloc) {