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

Side by Side Diff: content/public/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 unified diff | Download patch
« no previous file with comments | « content/child/BUILD.gn ('k') | content/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("//content/renderer/renderer.gni") 6 import("//content/renderer/renderer.gni")
7 7
8 # See //content/BUILD.gn for how this works. 8 # See //content/BUILD.gn for how this works.
9 group("renderer") { 9 group("renderer") {
10 if (is_component_build) { 10 if (is_component_build) {
11 public_deps = [ 11 public_deps = [
12 "//content", 12 "//content",
13 ] 13 ]
14 } else { 14 } else {
15 public_deps = [ 15 public_deps = [
16 ":renderer_sources", 16 ":renderer_sources",
17 ] 17 ]
18 } 18 }
19 } 19 }
20 20
21 source_set("renderer_sources") { 21 if (is_component_build) {
22 link_target_type = "source_set"
23 } else {
24 link_target_type = "static_library"
25 }
26 target(link_target_type, "renderer_sources") {
22 # External code should depend on via ":renderer" above. 27 # External code should depend on via ":renderer" above.
23 visibility = [ "//content/*" ] 28 visibility = [ "//content/*" ]
24 29
25 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources, 30 sources = rebase_path(content_renderer_gypi_values.public_renderer_sources,
26 ".", 31 ".",
27 "//content") 32 "//content")
28 33
29 configs += [ "//content:content_implementation" ] 34 configs += [ "//content:content_implementation" ]
30 35
31 deps = [ 36 deps = [
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ] 70 ]
66 } 71 }
67 72
68 if (enable_plugins) { 73 if (enable_plugins) {
69 sources += 74 sources +=
70 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources, 75 rebase_path(content_renderer_gypi_values.public_renderer_plugin_sources,
71 ".", 76 ".",
72 "//content") 77 "//content")
73 } 78 }
74 } 79 }
OLDNEW
« no previous file with comments | « content/child/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698