| 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 if (is_win) { | 521 if (is_win) { |
| 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 || is_ios) { |
| 532 _linker_configs = [ "//build/config/mac:strip_all" ] | 532 _linker_configs = [ "//build/config/mac:strip_all" ] |
| 533 } else { | 533 } else { |
| 534 _linker_configs = [] | 534 _linker_configs = [] |
| 535 } | 535 } |
| 536 | 536 |
| 537 # Executable defaults. | 537 # Executable defaults. |
| 538 default_executable_configs = default_compiler_configs + [ | 538 default_executable_configs = default_compiler_configs + [ |
| 539 "//build/config:default_libs", | 539 "//build/config:default_libs", |
| 540 "//build/config:executable_config", | 540 "//build/config:executable_config", |
| 541 ] + _linker_configs | 541 ] + _linker_configs |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 set_defaults("component") { | 630 set_defaults("component") { |
| 631 if (is_component_build) { | 631 if (is_component_build) { |
| 632 configs = default_shared_library_configs | 632 configs = default_shared_library_configs |
| 633 if (is_android) { | 633 if (is_android) { |
| 634 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 634 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 635 } | 635 } |
| 636 } else { | 636 } else { |
| 637 configs = default_compiler_configs | 637 configs = default_compiler_configs |
| 638 } | 638 } |
| 639 } | 639 } |
| OLD | NEW |