From fa171d263d0b7ec409f4af333d65b0f8c0d0dc47 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Sun, 26 Mar 2017 22:38:17 -0400 Subject: 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 Commit-Queue: dsinclair --- BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'BUILD.gn') 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") { -- cgit v1.2.3