OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/ios/ios_sdk.gni") | 5 import("//build/config/ios/ios_sdk.gni") |
6 import("//build/config/mac/base_rules.gni") | 6 import("//build/config/mac/base_rules.gni") |
7 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
8 | 8 |
9 # Generates Info.plist files for Mac apps and frameworks. | 9 # Generates Info.plist files for Mac apps and frameworks. |
10 # | 10 # |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 if (!defined(public_configs)) { | 842 if (!defined(public_configs)) { |
843 public_configs = [] | 843 public_configs = [] |
844 } | 844 } |
845 public_configs += [ ":$_framework_public_config$_toolchain_suffix" ] | 845 public_configs += [ ":$_framework_public_config$_toolchain_suffix" ] |
846 } | 846 } |
847 | 847 |
848 if (_has_public_headers) { | 848 if (_has_public_headers) { |
849 visibility = [ | 849 visibility = [ |
850 ":$_target_name$_toolchain_suffix", | 850 ":$_target_name$_toolchain_suffix", |
851 ":$_target_name+link$_toolchain_suffix", | 851 ":$_target_name+link$_toolchain_suffix", |
| 852 ":$_target_name+bundle$_toolchain_suffix", |
852 ] | 853 ] |
853 configs += [ ":$_headers_map_config$_toolchain_suffix" ] | 854 configs += [ ":$_headers_map_config$_toolchain_suffix" ] |
854 | 855 |
855 if (!defined(deps)) { | 856 if (!defined(deps)) { |
856 deps = [] | 857 deps = [] |
857 } | 858 } |
858 deps += [ ":$_framework_headers_target$_toolchain_suffix" ] | 859 deps += [ ":$_framework_headers_target$_toolchain_suffix" ] |
859 } else { | 860 } else { |
860 if (defined(invoker.visibility)) { | 861 if (defined(invoker.visibility)) { |
861 visibility = invoker.visibility | 862 visibility = invoker.visibility |
(...skipping 24 matching lines...) Expand all Loading... |
886 forward_variables_from(invoker, | 887 forward_variables_from(invoker, |
887 [ | 888 [ |
888 "testonly", | 889 "testonly", |
889 "visibility", | 890 "visibility", |
890 ]) | 891 ]) |
891 public_deps = [ | 892 public_deps = [ |
892 ":$_framework_target+link$_toolchain_suffix", | 893 ":$_framework_target+link$_toolchain_suffix", |
893 ] | 894 ] |
894 } | 895 } |
895 } | 896 } |
| 897 |
| 898 if (!_is_fat_build || _is_fat_build_main_target) { |
| 899 bundle_data(_target_name + "+bundle") { |
| 900 forward_variables_from(invoker, |
| 901 [ |
| 902 "testonly", |
| 903 "visibility", |
| 904 ]) |
| 905 public_deps = [ |
| 906 ":$_framework_target", |
| 907 ] |
| 908 sources = [ |
| 909 "$root_out_dir/$_output_name.framework", |
| 910 ] |
| 911 outputs = [ |
| 912 "{{bundle_resources_dir}}/Frameworks/$_output_name.framework", |
| 913 ] |
| 914 } |
| 915 } |
896 } | 916 } |
897 | 917 |
898 set_defaults("ios_framework_bundle") { | 918 set_defaults("ios_framework_bundle") { |
899 configs = default_shared_library_configs | 919 configs = default_shared_library_configs |
900 } | 920 } |
OLD | NEW |