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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/public/renderer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//content/child/child.gni") 7 import("//content/child/child.gni")
8 8
9 source_set("child") { 9 if (is_component_build) {
10 link_target_type = "source_set"
11 } else {
12 link_target_type = "static_library"
13 }
14 target(link_target_type, "child") {
10 # Targets external to content should always link to the public API. 15 # Targets external to content should always link to the public API.
11 # Internal targets can link to this but only if they're child processes 16 # Internal targets can link to this but only if they're child processes
12 # (i.e. not content/browser or content/common) and only if they're inside the 17 # (i.e. not content/browser or content/common) and only if they're inside the
13 # content component (i.e. not content/test or content/shell). 18 # content component (i.e. not content/test or content/shell).
14 visibility = [ 19 visibility = [
15 ":*", 20 ":*",
16 "//content/gpu/*", 21 "//content/gpu/*",
17 "//content/ppapi_plugin/*", 22 "//content/ppapi_plugin/*",
18 "//content/public/child:child_sources", 23 "//content/public/child:child_sources",
19 "//content/renderer/*", 24 "//content/renderer/*",
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 106
102 # See comment at the top of //content/BUILD.gn for how this works. 107 # See comment at the top of //content/BUILD.gn for how this works.
103 group("for_content_tests") { 108 group("for_content_tests") {
104 visibility = [ "//content/test/*" ] 109 visibility = [ "//content/test/*" ]
105 if (!is_component_build) { 110 if (!is_component_build) {
106 public_deps = [ 111 public_deps = [
107 ":child", 112 ":child",
108 ] 113 ]
109 } 114 }
110 } 115 }
OLDNEW
« 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