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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 configs = _shared_library_configs | 549 configs = _shared_library_configs |
550 } | 550 } |
551 if (is_component_build) { | 551 if (is_component_build) { |
552 set_defaults("component") { | 552 set_defaults("component") { |
553 configs = _shared_library_configs | 553 configs = _shared_library_configs |
554 if (is_android) { | 554 if (is_android) { |
555 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 555 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
556 } | 556 } |
557 } | 557 } |
558 } | 558 } |
| 559 if (is_ios) { |
| 560 set_defaults("ios_framework_bundle") { |
| 561 configs = _shared_library_configs |
| 562 } |
| 563 } |
| 564 if (is_mac) { |
| 565 set_defaults("mac_framework_bundle") { |
| 566 configs = _shared_library_configs |
| 567 } |
| 568 } |
559 | 569 |
560 # Source set defaults (also for components in non-component mode). | 570 # Source set defaults (also for components in non-component mode). |
561 set_defaults("source_set") { | 571 set_defaults("source_set") { |
562 configs = _native_compiler_configs | 572 configs = _native_compiler_configs |
563 } | 573 } |
564 if (!is_component_build) { | 574 if (!is_component_build) { |
565 set_defaults("component") { | 575 set_defaults("component") { |
566 configs = _native_compiler_configs | 576 configs = _native_compiler_configs |
567 } | 577 } |
568 } | 578 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 forward_variables_from(invoker, "*", [ "visibility" ]) | 621 forward_variables_from(invoker, "*", [ "visibility" ]) |
612 | 622 |
613 # All shared libraries must have the sanitizer deps to properly link in | 623 # All shared libraries must have the sanitizer deps to properly link in |
614 # asan mode (this target will be empty in other cases). | 624 # asan mode (this target will be empty in other cases). |
615 if (!defined(deps)) { | 625 if (!defined(deps)) { |
616 deps = [] | 626 deps = [] |
617 } | 627 } |
618 deps += [ "//build/config/sanitizers:deps" ] | 628 deps += [ "//build/config/sanitizers:deps" ] |
619 } | 629 } |
620 } | 630 } |
OLD | NEW |