OLD | NEW |
---|---|
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("//build/split_static_library.gni") | |
7 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
8 import("//ppapi/features/features.gni") | 9 import("//ppapi/features/features.gni") |
9 import("//printing/features/features.gni") | 10 import("//printing/features/features.gni") |
10 import("//third_party/webrtc/build/webrtc.gni") | 11 import("//third_party/webrtc/build/webrtc.gni") |
11 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 12 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
12 | 13 |
13 if (is_component_build) { | 14 if (is_component_build) { |
14 link_target_type = "source_set" | 15 link_target_type = "source_set" |
15 } else { | 16 } else { |
16 link_target_type = "static_library" | 17 if (is_win) { |
18 # Can be too large for some windows tools if not split. | |
19 link_target_type = "split_static_library" | |
20 } else { | |
21 link_target_type = "static_library" | |
scottmg
2017/01/10 16:09:21
Can you make this like browser https://cs.chromium
Daniel Bratell
2017/01/10 20:15:50
Done.
| |
22 } | |
17 } | 23 } |
18 target(link_target_type, "renderer") { | 24 target(link_target_type, "renderer") { |
19 # Only the public target should depend on this. All other targets (even | 25 # Only the public target should depend on this. All other targets (even |
20 # internal content ones) should depend on the public one. | 26 # internal content ones) should depend on the public one. |
21 visibility = [ | 27 visibility = [ |
22 ":for_content_tests", | 28 ":for_content_tests", |
23 "//content/public/renderer:renderer_sources", | 29 "//content/public/renderer:renderer_sources", |
24 ] | 30 ] |
25 | 31 |
26 sources = [ | 32 sources = [ |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
377 "webpublicsuffixlist_impl.cc", | 383 "webpublicsuffixlist_impl.cc", |
378 "webpublicsuffixlist_impl.h", | 384 "webpublicsuffixlist_impl.h", |
379 "webscrollbarbehavior_impl_aura.cc", | 385 "webscrollbarbehavior_impl_aura.cc", |
380 "webscrollbarbehavior_impl_aura.h", | 386 "webscrollbarbehavior_impl_aura.h", |
381 "webscrollbarbehavior_impl_mac.h", | 387 "webscrollbarbehavior_impl_mac.h", |
382 "webscrollbarbehavior_impl_mac.mm", | 388 "webscrollbarbehavior_impl_mac.mm", |
383 "websharedworker_proxy.cc", | 389 "websharedworker_proxy.cc", |
384 "websharedworker_proxy.h", | 390 "websharedworker_proxy.h", |
385 ] | 391 ] |
386 | 392 |
393 if (is_win && !is_component_build) { | |
scottmg
2017/01/10 17:51:40
If (per the bug) LTCG is mostly what makes this ha
Daniel Bratell
2017/01/10 20:15:50
Done.
| |
394 split_count = 2 # In certain configurations a full renderer.lib can | |
395 # be 2+ GB which breaks some Windows tools. | |
396 } | |
397 | |
387 configs += [ | 398 configs += [ |
388 "//content:content_implementation", | 399 "//content:content_implementation", |
389 "//build/config/compiler:no_size_t_to_int_warning", | 400 "//build/config/compiler:no_size_t_to_int_warning", |
390 ] | 401 ] |
391 defines = [] | 402 defines = [] |
392 | 403 |
393 public_deps = [] | 404 public_deps = [] |
394 deps = [ | 405 deps = [ |
395 "//base:i18n", | 406 "//base:i18n", |
396 "//cc", | 407 "//cc", |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
915 # For the defines in mojo_media_config. | 926 # For the defines in mojo_media_config. |
916 public_configs = [ "//media/mojo/services:mojo_media_config" ] | 927 public_configs = [ "//media/mojo/services:mojo_media_config" ] |
917 } | 928 } |
918 | 929 |
919 if (!is_component_build) { | 930 if (!is_component_build) { |
920 public_deps = [ | 931 public_deps = [ |
921 ":renderer", | 932 ":renderer", |
922 ] | 933 ] |
923 } | 934 } |
924 } | 935 } |
OLD | NEW |