| 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 # Many targets remove these configs, so they are not contained within | 522 # Many targets remove these configs, so they are not contained within |
| 523 # //build/config:executable_config for easy removal. | 523 # //build/config:executable_config for easy removal. |
| 524 _linker_configs = [ | 524 _linker_configs = [ |
| 525 "//build/config/win:default_incremental_linking", | 525 "//build/config/win:default_incremental_linking", |
| 526 | 526 |
| 527 # Default to console-mode apps. Most of our targets are tests and such | 527 # Default to console-mode apps. Most of our targets are tests and such |
| 528 # that shouldn't use the windows subsystem. | 528 # that shouldn't use the windows subsystem. |
| 529 "//build/config/win:console", | 529 "//build/config/win:console", |
| 530 ] | 530 ] |
| 531 } else if (is_mac) { | 531 } else if (is_mac) { |
| 532 _linker_configs = [ "//build/config/mac:strip_all" ] | 532 _linker_configs = [ |
| 533 "//build/config/mac:strip_all", |
| 534 "//build/config/mac:save_unstripped_output", |
| 535 ] |
| 533 } else { | 536 } else { |
| 534 _linker_configs = [] | 537 _linker_configs = [] |
| 535 } | 538 } |
| 536 | 539 |
| 537 # Executable defaults. | 540 # Executable defaults. |
| 538 default_executable_configs = default_compiler_configs + [ | 541 default_executable_configs = default_compiler_configs + [ |
| 539 "//build/config:default_libs", | 542 "//build/config:default_libs", |
| 540 "//build/config:executable_config", | 543 "//build/config:executable_config", |
| 541 ] + _linker_configs | 544 ] + _linker_configs |
| 542 set_defaults("executable") { | 545 set_defaults("executable") { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 set_defaults("component") { | 633 set_defaults("component") { |
| 631 if (is_component_build) { | 634 if (is_component_build) { |
| 632 configs = default_shared_library_configs | 635 configs = default_shared_library_configs |
| 633 if (is_android) { | 636 if (is_android) { |
| 634 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 637 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 635 } | 638 } |
| 636 } else { | 639 } else { |
| 637 configs = default_compiler_configs | 640 configs = default_compiler_configs |
| 638 } | 641 } |
| 639 } | 642 } |
| OLD | NEW |