| OLD | NEW | 
|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # ============================================================================= | 5 # ============================================================================= | 
| 6 # PLATFORM SELECTION | 6 # PLATFORM SELECTION | 
| 7 # ============================================================================= | 7 # ============================================================================= | 
| 8 # | 8 # | 
| 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 
| 10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. | 
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 151 # to be global. | 151 # to be global. | 
| 152 # | 152 # | 
| 153 # In the new scheme, this file sets a "default_symbols" and | 153 # In the new scheme, this file sets a "default_symbols" and | 
| 154 # "default_optimization" configs, which then expands to the right thing | 154 # "default_optimization" configs, which then expands to the right thing | 
| 155 # depending on the current build. This means less information has to be global, | 155 # depending on the current build. This means less information has to be global, | 
| 156 # and there's only one config to remove that's the same in all cases for | 156 # and there's only one config to remove that's the same in all cases for | 
| 157 # targets that want to override it. It also means that the associated flags can | 157 # targets that want to override it. It also means that the associated flags can | 
| 158 # be non-global. | 158 # be non-global. | 
| 159 using_new_global_compiler_configs = true | 159 using_new_global_compiler_configs = true | 
| 160 | 160 | 
| 161 # To assist in a multi-sided landing of updating the default optimization |  | 
| 162 # config. When false, this file sets up the default optimization config to be |  | 
| 163 # either "no_optimize" (debug) or "optimize" (release). When true it will |  | 
| 164 # always set the config "default_optimization". |  | 
| 165 # |  | 
| 166 # TODO(brettw) remove this when all repos are updated. |  | 
| 167 using_new_optimization_config = true |  | 
| 168 |  | 
| 169 # To assist in a multi-sided landing of updating the default optimization |  | 
| 170 # config. When false, this file sets up the default optimization config to be |  | 
| 171 # either "no_optimize" (debug) or "optimize" (release). When true it will |  | 
| 172 # always set the config "default_optimization". |  | 
| 173 # |  | 
| 174 # TODO(brettw) remove this when all repos are updated. |  | 
| 175 using_new_optimization_config = true |  | 
| 176 |  | 
| 177 # ============================================================================= | 161 # ============================================================================= | 
| 178 # OS DEFINITIONS | 162 # OS DEFINITIONS | 
| 179 # ============================================================================= | 163 # ============================================================================= | 
| 180 # | 164 # | 
| 181 # We set these various is_FOO booleans for convenience in writing OS-based | 165 # We set these various is_FOO booleans for convenience in writing OS-based | 
| 182 # conditions. | 166 # conditions. | 
| 183 # | 167 # | 
| 184 # - is_android, is_chromeos, is_ios, and is_win should be obvious. | 168 # - is_android, is_chromeos, is_ios, and is_win should be obvious. | 
| 185 # - is_mac is set only for desktop Mac. It is not set on iOS. | 169 # - is_mac is set only for desktop Mac. It is not set on iOS. | 
| 186 # - is_posix is true for mac and any Unix-like system (basically everything | 170 # - is_posix is true for mac and any Unix-like system (basically everything | 
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 599     forward_variables_from(invoker, "*") | 583     forward_variables_from(invoker, "*") | 
| 600 | 584 | 
| 601     # All shared libraries must have the sanitizer deps to properly link in | 585     # All shared libraries must have the sanitizer deps to properly link in | 
| 602     # asan mode (this target will be empty in other cases). | 586     # asan mode (this target will be empty in other cases). | 
| 603     if (!defined(deps)) { | 587     if (!defined(deps)) { | 
| 604       deps = [] | 588       deps = [] | 
| 605     } | 589     } | 
| 606     deps += [ "//build/config/sanitizers:deps" ] | 590     deps += [ "//build/config/sanitizers:deps" ] | 
| 607   } | 591   } | 
| 608 } | 592 } | 
| OLD | NEW | 
|---|