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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 # Executable defaults. | 500 # Executable defaults. |
501 _executable_configs = | 501 _executable_configs = |
502 _native_compiler_configs + [ "//build/config:default_libs" ] | 502 _native_compiler_configs + [ "//build/config:default_libs" ] |
503 if (is_win) { | 503 if (is_win) { |
504 _executable_configs += _windows_linker_configs | 504 _executable_configs += _windows_linker_configs |
505 } else if (is_mac) { | 505 } else if (is_mac) { |
506 _executable_configs += [ | 506 _executable_configs += [ |
507 "//build/config/mac:mac_dynamic_flags", | 507 "//build/config/mac:mac_dynamic_flags", |
508 "//build/config/mac:mac_executable_flags", | 508 "//build/config/mac:mac_executable_flags", |
509 ] | 509 ] |
510 } else if (is_linux || is_android) { | 510 } else if (is_linux || is_android || is_chromecast) { |
511 _executable_configs += [ "//build/config/gcc:executable_ldconfig" ] | 511 _executable_configs += [ "//build/config/gcc:executable_ldconfig" ] |
512 if (is_android) { | 512 if (is_android) { |
513 _executable_configs += [ "//build/config/android:executable_config" ] | 513 _executable_configs += [ "//build/config/android:executable_config" ] |
| 514 } else if (is_chromecast) { |
| 515 _executable_configs += [ "//build/config/chromecast:executable_config" ] |
514 } | 516 } |
515 } | 517 } |
516 set_defaults("executable") { | 518 set_defaults("executable") { |
517 configs = _executable_configs | 519 configs = _executable_configs |
518 } | 520 } |
519 | 521 |
520 # Static library defaults. | 522 # Static library defaults. |
521 set_defaults("static_library") { | 523 set_defaults("static_library") { |
522 configs = _native_compiler_configs | 524 configs = _native_compiler_configs |
523 } | 525 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 forward_variables_from(invoker, "*") | 583 forward_variables_from(invoker, "*") |
582 | 584 |
583 # 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 |
584 # asan mode (this target will be empty in other cases). | 586 # asan mode (this target will be empty in other cases). |
585 if (!defined(deps)) { | 587 if (!defined(deps)) { |
586 deps = [] | 588 deps = [] |
587 } | 589 } |
588 deps += [ "//build/config/sanitizers:deps" ] | 590 deps += [ "//build/config/sanitizers:deps" ] |
589 } | 591 } |
590 } | 592 } |
OLD | NEW |