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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
841 if (!defined(public_configs)) { | 841 if (!defined(public_configs)) { |
842 public_configs = [] | 842 public_configs = [] |
843 } | 843 } |
844 public_configs += [ ":$_framework_public_config$_toolchain_suffix" ] | 844 public_configs += [ ":$_framework_public_config$_toolchain_suffix" ] |
845 } | 845 } |
846 | 846 |
847 if (_has_public_headers) { | 847 if (_has_public_headers) { |
848 visibility = [ | 848 visibility = [ |
849 ":$_target_name$_toolchain_suffix", | 849 ":$_target_name$_toolchain_suffix", |
850 ":$_target_name+link$_toolchain_suffix", | 850 ":$_target_name+link$_toolchain_suffix", |
851 ":$_target_name+bundle$_toolchain_suffix", | |
851 ] | 852 ] |
852 configs += [ ":$_headers_map_config$_toolchain_suffix" ] | 853 configs += [ ":$_headers_map_config$_toolchain_suffix" ] |
853 | 854 |
854 if (!defined(deps)) { | 855 if (!defined(deps)) { |
855 deps = [] | 856 deps = [] |
856 } | 857 } |
857 deps += [ ":$_framework_headers_target$_toolchain_suffix" ] | 858 deps += [ ":$_framework_headers_target$_toolchain_suffix" ] |
858 } else { | 859 } else { |
859 if (defined(invoker.visibility)) { | 860 if (defined(invoker.visibility)) { |
860 visibility = invoker.visibility | 861 visibility = invoker.visibility |
(...skipping 24 matching lines...) Expand all Loading... | |
885 forward_variables_from(invoker, | 886 forward_variables_from(invoker, |
886 [ | 887 [ |
887 "testonly", | 888 "testonly", |
888 "visibility", | 889 "visibility", |
889 ]) | 890 ]) |
890 public_deps = [ | 891 public_deps = [ |
891 ":$_framework_target+link$_toolchain_suffix", | 892 ":$_framework_target+link$_toolchain_suffix", |
892 ] | 893 ] |
893 } | 894 } |
894 } | 895 } |
896 | |
897 if (!_is_fat_build || _is_fat_build_main_target) { | |
justincohen
2016/07/21 18:34:51
I'm seeing `!_is_fat_build || _is_fat_build_main_t
| |
898 bundle_data(_target_name + "+bundle") { | |
899 forward_variables_from(invoker, | |
900 [ | |
901 "testonly", | |
902 "visibility", | |
903 ]) | |
904 public_deps = [ | |
905 ":$_framework_target", | |
906 ] | |
907 sources = [ | |
908 "$root_out_dir/$_output_name.framework", | |
909 ] | |
910 outputs = [ | |
911 "{{bundle_resources_dir}}/Frameworks/$_output_name.framework", | |
912 ] | |
913 } | |
914 } | |
895 } | 915 } |
896 | 916 |
897 set_defaults("ios_framework_bundle") { | 917 set_defaults("ios_framework_bundle") { |
898 configs = default_shared_library_configs | 918 configs = default_shared_library_configs |
899 } | 919 } |
OLD | NEW |