| 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 595 # Source set defaults (also for components in non-component mode). | 595 # Source set defaults (also for components in non-component mode). | 
| 596 set_defaults("source_set") { | 596 set_defaults("source_set") { | 
| 597   configs = _native_compiler_configs | 597   configs = _native_compiler_configs | 
| 598 } | 598 } | 
| 599 if (!is_component_build) { | 599 if (!is_component_build) { | 
| 600   set_defaults("component") { | 600   set_defaults("component") { | 
| 601     configs = _native_compiler_configs | 601     configs = _native_compiler_configs | 
| 602   } | 602   } | 
| 603 } | 603 } | 
| 604 | 604 | 
|  | 605 # TODO(brettw) move to //build/split_static_library.gni when set_defaults can | 
|  | 606 # be practically implemented outside of this file. | 
|  | 607 set_defaults("split_static_library") { | 
|  | 608   configs = _native_compiler_configs | 
|  | 609 } | 
|  | 610 | 
| 605 # Test defaults. | 611 # Test defaults. | 
| 606 set_defaults("test") { | 612 set_defaults("test") { | 
| 607   if (is_android) { | 613   if (is_android) { | 
| 608     configs = _shared_library_configs | 614     configs = _shared_library_configs | 
| 609   } else { | 615   } else { | 
| 610     configs = _executable_configs | 616     configs = _executable_configs | 
| 611   } | 617   } | 
| 612 } | 618 } | 
| 613 | 619 | 
| 614 # ============================================================================== | 620 # ============================================================================== | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 656     forward_variables_from(invoker, "*", [ "visibility" ]) | 662     forward_variables_from(invoker, "*", [ "visibility" ]) | 
| 657 | 663 | 
| 658     # All shared libraries must have the sanitizer deps to properly link in | 664     # All shared libraries must have the sanitizer deps to properly link in | 
| 659     # asan mode (this target will be empty in other cases). | 665     # asan mode (this target will be empty in other cases). | 
| 660     if (!defined(deps)) { | 666     if (!defined(deps)) { | 
| 661       deps = [] | 667       deps = [] | 
| 662     } | 668     } | 
| 663     deps += [ "//build/config/sanitizers:deps" ] | 669     deps += [ "//build/config/sanitizers:deps" ] | 
| 664   } | 670   } | 
| 665 } | 671 } | 
| OLD | NEW | 
|---|