diff options
author | brettw <brettw@chromium.org> | 2016-07-21 09:38:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 09:38:22 -0700 |
commit | e283e47aa3e6786dad94392db292e08ce18ccd5e (patch) | |
tree | 1e3ef52a079287ce0bd1d1de94fbc3e32fb9346a | |
parent | 8b301624917aae9f7b7b26e6d275c9ae9cd80cfe (diff) | |
download | pdfium-chromium/2807.tar.xz |
Convert source sets to static libraries.chromium/2808chromium/2807chromium/2806chromium/2805chromium/2804
This improves build performance somewhat. This does not change the standalone
targets since these don't affect the build time of Chrome and are small enough
for it not to matter anyway.
BUG=http://crbug.com/627637
Review-Url: https://codereview.chromium.org/2164633005
-rw-r--r-- | BUILD.gn | 2 | ||||
-rw-r--r-- | third_party/BUILD.gn | 17 |
2 files changed, 10 insertions, 9 deletions
@@ -147,7 +147,7 @@ static_library("pdfium") { } } -source_set("test_support") { +static_library("test_support") { testonly = true sources = [ "testing/fx_string_testhelpers.cpp", diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 766b6762c3..03f11c1cf9 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -16,7 +16,7 @@ config("pdfium_third_party_config") { configs = [ "..:pdfium_common_config" ] } -source_set("bigint") { +static_library("bigint") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -106,7 +106,7 @@ if (!pdf_use_skia) { } } - source_set("fx_agg") { + static_library("fx_agg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -149,7 +149,7 @@ config("fx_lcms2_warnings") { } } -source_set("fx_lcms2") { +static_library("fx_lcms2") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -197,7 +197,7 @@ config("jpeg_warnings") { } } -source_set("jpeg") { +static_library("jpeg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -275,7 +275,7 @@ config("fx_libopenjpeg_warnings") { } } -source_set("fx_libopenjpeg") { +static_library("fx_libopenjpeg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -307,7 +307,7 @@ source_set("fx_libopenjpeg") { ] } -source_set("fx_lpng") { +static_library("fx_lpng") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -341,7 +341,7 @@ source_set("fx_lpng") { } if (pdf_enable_xfa) { - source_set("fx_tiff") { + static_library("fx_tiff") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -405,7 +405,7 @@ config("fx_zlib_warnings") { } } -source_set("fx_zlib") { +static_library("fx_zlib") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", @@ -433,6 +433,7 @@ source_set("fx_zlib") { ] } +# Can not be a static library due to lack of .cc files. source_set("pdfium_base") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ |