| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 _windows_linker_configs = [ | 504 _windows_linker_configs = [ |
| 505 "//build/config/win:default_incremental_linking", | 505 "//build/config/win:default_incremental_linking", |
| 506 | 506 |
| 507 # Default to console-mode apps. Most of our targets are tests and such | 507 # Default to console-mode apps. Most of our targets are tests and such |
| 508 # that shouldn't use the windows subsystem. | 508 # that shouldn't use the windows subsystem. |
| 509 "//build/config/win:console", | 509 "//build/config/win:console", |
| 510 ] | 510 ] |
| 511 } | 511 } |
| 512 | 512 |
| 513 # Executable defaults. | 513 # Executable defaults. |
| 514 _executable_configs = _native_compiler_configs + [ | 514 _executable_configs = |
| 515 "//build/config:default_libs", | 515 _native_compiler_configs + [ |
| 516 "//build/config:executable_config", | 516 "//build/config:default_libs", |
| 517 ] | 517 "//build/config:executable_config", |
| 518 "//third_party/instrumented_libraries:prebuilt_link_helper", |
| 519 ] |
| 518 if (is_win) { | 520 if (is_win) { |
| 519 _executable_configs += _windows_linker_configs | 521 _executable_configs += _windows_linker_configs |
| 520 } | 522 } |
| 523 |
| 521 set_defaults("executable") { | 524 set_defaults("executable") { |
| 522 configs = _executable_configs | 525 configs = _executable_configs |
| 523 } | 526 } |
| 524 | 527 |
| 525 # Static library defaults. | 528 # Static library defaults. |
| 526 set_defaults("static_library") { | 529 set_defaults("static_library") { |
| 527 configs = _native_compiler_configs | 530 configs = _native_compiler_configs |
| 528 } | 531 } |
| 529 | 532 |
| 530 # Shared library and loadable module defaults (also for components in component | 533 # Shared library and loadable module defaults (also for components in component |
| 531 # mode). | 534 # mode). |
| 532 _shared_library_configs = _native_compiler_configs + [ | 535 _shared_library_configs = |
| 533 "//build/config:default_libs", | 536 _native_compiler_configs + [ |
| 534 "//build/config:shared_library_config", | 537 "//build/config:default_libs", |
| 535 ] | 538 "//build/config:shared_library_config", |
| 539 "//third_party/instrumented_libraries:prebuilt_link_helper", |
| 540 ] |
| 536 if (is_win) { | 541 if (is_win) { |
| 537 _shared_library_configs += _windows_linker_configs | 542 _shared_library_configs += _windows_linker_configs |
| 538 } else if (is_android) { | 543 } else if (is_android) { |
| 539 # Strip native JNI exports from shared libraries by default. Binaries that | 544 # Strip native JNI exports from shared libraries by default. Binaries that |
| 540 # want this can remove this config. | 545 # want this can remove this config. |
| 541 _shared_library_configs += | 546 _shared_library_configs += |
| 542 [ "//build/config/android:hide_native_jni_exports" ] | 547 [ "//build/config/android:hide_native_jni_exports" ] |
| 543 } | 548 } |
| 544 set_defaults("shared_library") { | 549 set_defaults("shared_library") { |
| 545 configs = _shared_library_configs | 550 configs = _shared_library_configs |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 forward_variables_from(invoker, "*", [ "visibility" ]) | 625 forward_variables_from(invoker, "*", [ "visibility" ]) |
| 621 | 626 |
| 622 # All shared libraries must have the sanitizer deps to properly link in | 627 # All shared libraries must have the sanitizer deps to properly link in |
| 623 # asan mode (this target will be empty in other cases). | 628 # asan mode (this target will be empty in other cases). |
| 624 if (!defined(deps)) { | 629 if (!defined(deps)) { |
| 625 deps = [] | 630 deps = [] |
| 626 } | 631 } |
| 627 deps += [ "//build/config/sanitizers:deps" ] | 632 deps += [ "//build/config/sanitizers:deps" ] |
| 628 } | 633 } |
| 629 } | 634 } |
| OLD | NEW |