| 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. Enabled by default for everything official builds and |
| 10 use_jumbo_build = false | 10 # Android+gcc builds because of a warning that prevents builds. |
| 11 use_blink_jumbo_build = !is_official_build && !(is_android && !is_clang) |
| 11 | 12 |
| 12 # A target to exclude from jumbo builds, for optimal round trip time | 13 # A target to exclude from jumbo builds, for optimal round trip time |
| 13 # when frequently changing a single cpp file. | 14 # when frequently changing a single cpp file. |
| 14 jumbo_build_excluded = "" | 15 jumbo_build_excluded = "" |
| 15 | 16 |
| 16 # How many files to group at most. Smaller numbers give more | 17 # How many files to group at most. Smaller numbers give more |
| 17 # parallellism, higher numbers give less total CPU usage. Higher | 18 # parallellism, higher numbers give less total CPU usage. Higher |
| 18 # numbers also give longer single-file recompilation times. | 19 # numbers also give longer single-file recompilation times. |
| 19 # | 20 # |
| 20 # Recommendations: | 21 # Recommendations: |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 forward_variables_from(invoker, "*", variables_to_not_forward) | 138 forward_variables_from(invoker, "*", variables_to_not_forward) |
| 138 } | 139 } |
| 139 } | 140 } |
| 140 | 141 |
| 141 set_defaults("jumbo_target") { | 142 set_defaults("jumbo_target") { |
| 142 # This sets the default list of configs when the content_source_set target | 143 # This sets the default list of configs when the content_source_set target |
| 143 # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and | 144 # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and |
| 144 # is the list normally applied to static libraries and source sets. | 145 # is the list normally applied to static libraries and source sets. |
| 145 configs = default_compiler_configs | 146 configs = default_compiler_configs |
| 146 } | 147 } |
| OLD | NEW |