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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/renderer/mus/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/renderer/renderer.gni") 7 import("//content/renderer/renderer.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//third_party/webrtc/build/webrtc.gni") 9 import("//third_party/webrtc/build/webrtc.gni")
10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") 10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
11 11
12 source_set("renderer") { 12 if (is_component_build) {
13 link_target_type = "source_set"
14 } else {
15 link_target_type = "static_library"
16 }
17 target(link_target_type, "renderer") {
13 # Only the public target should depend on this. All other targets (even 18 # Only the public target should depend on this. All other targets (even
14 # internal content ones) should depend on the public one. 19 # internal content ones) should depend on the public one.
15 visibility = [ 20 visibility = [
16 ":for_content_tests", 21 ":for_content_tests",
17 "//content/public/renderer:renderer_sources", 22 "//content/public/renderer:renderer_sources",
18 ] 23 ]
19 24
20 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, 25 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources,
21 ".", 26 ".",
22 "//content") 27 "//content")
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 # For the defines in mojo_media_config. 269 # For the defines in mojo_media_config.
265 public_configs = [ "//media/mojo/services:mojo_media_config" ] 270 public_configs = [ "//media/mojo/services:mojo_media_config" ]
266 } 271 }
267 272
268 if (!is_component_build) { 273 if (!is_component_build) {
269 public_deps = [ 274 public_deps = [
270 ":renderer", 275 ":renderer",
271 ] 276 ]
272 } 277 }
273 } 278 }
OLDNEW
« 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