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

Unified Diff: content/child/BUILD.gn

Issue 2163823002: Reduce chrome.dll size by careful use of static_library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make //content/child static_library conditional Created 4 years, 5 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 | content/public/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/BUILD.gn
diff --git a/content/child/BUILD.gn b/content/child/BUILD.gn
index 1338241b19ab716da46b820efb3e0f8bb32b7c3d..4cc76f3c2956fe4a79c8660339ffc218f6cb72be 100644
--- a/content/child/BUILD.gn
+++ b/content/child/BUILD.gn
@@ -6,7 +6,12 @@ import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//content/child/child.gni")
-source_set("child") {
+if (is_component_build) {
+ link_target_type = "source_set"
+} else {
+ link_target_type = "static_library"
+}
+target(link_target_type, "child") {
# Targets external to content should always link to the public API.
# Internal targets can link to this but only if they're child processes
# (i.e. not content/browser or content/common) and only if they're inside the
« no previous file with comments | « no previous file | content/public/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698