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

Unified Diff: content/renderer/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 | « content/public/renderer/BUILD.gn ('k') | content/renderer/mus/BUILD.gn » ('j') | 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 2014cc857f7ceb8d5d26ccc8729a3df5d0dbd8db..7e3a1bc5f5d9a6b5445a29ddc91e199816b44ef0 100644
--- a/content/renderer/BUILD.gn
+++ b/content/renderer/BUILD.gn
@@ -9,7 +9,12 @@ import("//media/media_options.gni")
import("//third_party/webrtc/build/webrtc.gni")
import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
-source_set("renderer") {
+if (is_component_build) {
+ link_target_type = "source_set"
+} else {
+ link_target_type = "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.
visibility = [
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/renderer/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698