summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-03-26 22:38:17 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-28 19:33:43 +0000
commitfa171d263d0b7ec409f4af333d65b0f8c0d0dc47 (patch)
tree4d6994c0a95d3c8ad892640e03fff077cda9c8d8 /BUILD.gn
parent8b6186f89002099d406508acecf4bccc4ef64c95 (diff)
downloadpdfium-fa171d263d0b7ec409f4af333d65b0f8c0d0dc47.tar.xz
Allow adding complete_static_lib to build
The complete_static_lib will cause all of the various libraries generated during the build to get bundled into a single libpdfium.a. This makes linking a lot easier for external applications as they just -lpdfium instead of trying to get the correct link order. See https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md#complete_static_lib for more information. Note, this just does pdfium at the moment, the V8 and XFA libs will need to get changed in the future if they're needed. BUG=pdfium:451 Change-Id: Id1f2d999652e2f951bcd77591f2514641371324e Reviewed-on: https://pdfium-review.googlesource.com/3220 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 4 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 5de9d19914..58798d9907 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -214,6 +214,10 @@ static_library("pdfium") {
} else {
libs += [ "freetype" ]
}
+
+ if (pdf_is_complete_lib) {
+ complete_static_lib = true
+ }
}
static_library("test_support") {