OLD | NEW |
---|---|
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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/split_static_library.gni") # When someone uses that target_type | 5 import("//build/split_static_library.gni") # When someone uses that target_type |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # If true, use a jumbo build (files compiled together) to speed up | 8 # If true, use a jumbo build (files compiled together) to speed up |
9 # compilation. | 9 # compilation. |
10 use_jumbo_build = false | 10 use_jumbo_build = !is_official_build && !(is_android && !is_clang) |
Daniel Bratell
2017/07/05 16:14:31
Must not be included in the final commit. Just for
| |
11 | 11 |
12 # A target to exclude from jumbo builds, for optimal round trip time | 12 # A target to exclude from jumbo builds, for optimal round trip time |
13 # when frequently changing a single cpp file. | 13 # when frequently changing a single cpp file. |
14 jumbo_build_excluded = "" | 14 jumbo_build_excluded = "" |
15 | 15 |
16 # How many files to group at most. Smaller numbers give more | 16 # How many files to group at most. Smaller numbers give more |
17 # parallellism, higher numbers give less total CPU usage. Higher | 17 # parallellism, higher numbers give less total CPU usage. Higher |
18 # numbers also give longer single-file recompilation times. | 18 # numbers also give longer single-file recompilation times. |
19 # | 19 # |
20 # Recommendations: | 20 # Recommendations: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 forward_variables_from(invoker, "*", variables_to_not_forward) | 152 forward_variables_from(invoker, "*", variables_to_not_forward) |
153 } | 153 } |
154 } | 154 } |
155 | 155 |
156 set_defaults("jumbo_target") { | 156 set_defaults("jumbo_target") { |
157 # This sets the default list of configs when the content_source_set target | 157 # This sets the default list of configs when the content_source_set target |
158 # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and | 158 # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and |
159 # is the list normally applied to static libraries and source sets. | 159 # is the list normally applied to static libraries and source sets. |
160 configs = default_compiler_configs | 160 configs = default_compiler_configs |
161 } | 161 } |
OLD | NEW |