Chromium Code Reviews| 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) { |
|
brettw
2015/12/02 18:43:35
You can't use is_chromecast from here. As describe
bcf
2015/12/02 23:33:01
Okay. How does something like PS12 look?
| |
| 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 } |
| 524 | 526 |
| 525 # Shared library and loadable module defaults (also for components in component | 527 # Shared library and loadable module defaults (also for components in component |
| 526 # mode). | 528 # mode). |
| 527 _shared_library_configs = | 529 _shared_library_configs = |
| 528 _native_compiler_configs + [ "//build/config:default_libs" ] | 530 _native_compiler_configs + [ "//build/config:default_libs" ] |
| 529 if (is_win) { | 531 if (is_win) { |
| 530 _shared_library_configs += _windows_linker_configs | 532 _shared_library_configs += _windows_linker_configs |
| 531 } else if (is_mac) { | 533 } else if (is_mac) { |
| 532 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] | 534 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] |
| 533 } else if (is_android) { | 535 } else if (is_android) { |
| 534 # Strip native JNI exports from shared libraries by default. Binaries that | 536 # Strip native JNI exports from shared libraries by default. Binaries that |
| 535 # want this can remove this config. | 537 # want this can remove this config. |
| 536 _shared_library_configs += | 538 _shared_library_configs += |
| 537 [ "//build/config/android:hide_native_jni_exports" ] | 539 [ "//build/config/android:hide_native_jni_exports" ] |
| 540 } else if (is_chromecast) { | |
| 541 _shared_library_configs += [ "//build/config/chromecast:shlib_config" ] | |
| 538 } | 542 } |
| 539 set_defaults("shared_library") { | 543 set_defaults("shared_library") { |
| 540 configs = _shared_library_configs | 544 configs = _shared_library_configs |
| 541 } | 545 } |
| 542 set_defaults("loadable_module") { | 546 set_defaults("loadable_module") { |
| 543 configs = _shared_library_configs | 547 configs = _shared_library_configs |
| 544 } | 548 } |
| 545 if (is_component_build) { | 549 if (is_component_build) { |
| 546 set_defaults("component") { | 550 set_defaults("component") { |
| 547 configs = _shared_library_configs | 551 configs = _shared_library_configs |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 581 forward_variables_from(invoker, "*") | 585 forward_variables_from(invoker, "*") |
| 582 | 586 |
| 583 # All shared libraries must have the sanitizer deps to properly link in | 587 # All shared libraries must have the sanitizer deps to properly link in |
| 584 # asan mode (this target will be empty in other cases). | 588 # asan mode (this target will be empty in other cases). |
| 585 if (!defined(deps)) { | 589 if (!defined(deps)) { |
| 586 deps = [] | 590 deps = [] |
| 587 } | 591 } |
| 588 deps += [ "//build/config/sanitizers:deps" ] | 592 deps += [ "//build/config/sanitizers:deps" ] |
| 589 } | 593 } |
| 590 } | 594 } |
| OLD | NEW |