Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Unified Diff: content/renderer/BUILD.gn

Issue 2622583005: Split renderer.lib on Windows to avoid files larger than 2GB. (Closed)
Patch Set: Rebased to a newer master Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/BUILD.gn
diff --git a/content/renderer/BUILD.gn b/content/renderer/BUILD.gn
index abfdbfe42b9bc3a68773ddffd144c5e72baa88a2..6ee77049e0d4023a2b493dbfab9015ac33c90a00 100644
--- a/content/renderer/BUILD.gn
+++ b/content/renderer/BUILD.gn
@@ -5,6 +5,7 @@
import("//build/config/chromecast_build.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
+import("//build/split_static_library.gni")
import("//media/media_options.gni")
import("//ppapi/features/features.gni")
import("//printing/features/features.gni")
@@ -14,8 +15,9 @@ import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
if (is_component_build) {
link_target_type = "source_set"
} else {
- link_target_type = "static_library"
+ link_target_type = "split_static_library"
}
+
target(link_target_type, "renderer") {
# Only the public target should depend on this. All other targets (even
# internal content ones) should depend on the public one.
@@ -387,6 +389,15 @@ target(link_target_type, "renderer") {
"webscrollbarbehavior_impl_mac.mm",
]
+ if (!is_component_build) {
+ if (is_win && is_official_build) {
+ split_count = 2 # In certain configurations a full renderer.lib can
+ # be 2+ GB which breaks some Windows tools.
+ } else {
+ split_count = 1
+ }
+ }
+
configs += [
"//content:content_implementation",
"//build/config/compiler:no_size_t_to_int_warning",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698