| 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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 visibility = [ ":$_framework_public_config" ] | 786 visibility = [ ":$_framework_public_config" ] |
| 787 common_flags = [ "-F" + rebase_path("$root_out_dir/.", root_build_dir) ] | 787 common_flags = [ "-F" + rebase_path("$root_out_dir/.", root_build_dir) ] |
| 788 cflags_objc = common_flags | 788 cflags_objc = common_flags |
| 789 cflags_objcc = common_flags | 789 cflags_objcc = common_flags |
| 790 | 790 |
| 791 # The link settings are inherited from the framework_bundle config. | 791 # The link settings are inherited from the framework_bundle config. |
| 792 } | 792 } |
| 793 } | 793 } |
| 794 } | 794 } |
| 795 | 795 |
| 796 if (!_is_fat_build || _is_fat_build_main_target) { |
| 797 _info_plist_target = _target_name + "_info_plist" |
| 798 _info_plist_bundle = _target_name + "_info_plist_bundle" |
| 799 ios_info_plist(_info_plist_target) { |
| 800 visibility = [ ":$_info_plist_bundle" ] |
| 801 executable_name = _output_name |
| 802 forward_variables_from(invoker, |
| 803 [ |
| 804 "extra_substitutions", |
| 805 "info_plist", |
| 806 "info_plist_target", |
| 807 ]) |
| 808 } |
| 809 |
| 810 bundle_data(_info_plist_bundle) { |
| 811 visibility = [ ":$_framework_target" ] |
| 812 forward_variables_from(invoker, [ "testonly" ]) |
| 813 sources = get_target_outputs(":$_info_plist_target") |
| 814 outputs = [ |
| 815 "{{bundle_root_dir}}/Info.plist", |
| 816 ] |
| 817 public_deps = [ |
| 818 ":$_info_plist_target", |
| 819 ] |
| 820 } |
| 821 } |
| 822 |
| 796 framework_bundle(_framework_target) { | 823 framework_bundle(_framework_target) { |
| 797 forward_variables_from(invoker, | 824 forward_variables_from(invoker, |
| 798 "*", | 825 "*", |
| 799 [ | 826 [ |
| 800 "output_name", | 827 "output_name", |
| 801 "public_headers", | 828 "public_headers", |
| 802 "visibility", | 829 "visibility", |
| 803 ]) | 830 ]) |
| 804 output_name = _output_name | 831 output_name = _output_name |
| 805 | 832 |
| 833 if (!_is_fat_build || _is_fat_build_main_target) { |
| 834 if (!defined(bundle_deps)) { |
| 835 bundle_deps = [] |
| 836 } |
| 837 bundle_deps += [ ":$_info_plist_bundle" ] |
| 838 } |
| 839 |
| 806 if (_has_public_headers) { | 840 if (_has_public_headers) { |
| 807 if (!defined(public_configs)) { | 841 if (!defined(public_configs)) { |
| 808 public_configs = [] | 842 public_configs = [] |
| 809 } | 843 } |
| 810 public_configs += [ ":$_framework_public_config$_toolchain_suffix" ] | 844 public_configs += [ ":$_framework_public_config$_toolchain_suffix" ] |
| 811 } | 845 } |
| 812 | 846 |
| 813 if (_has_public_headers) { | 847 if (_has_public_headers) { |
| 814 visibility = [ | 848 visibility = [ |
| 815 ":$_target_name$_toolchain_suffix", | 849 ":$_target_name$_toolchain_suffix", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 public_deps = [ | 890 public_deps = [ |
| 857 ":$_framework_target+link$_toolchain_suffix", | 891 ":$_framework_target+link$_toolchain_suffix", |
| 858 ] | 892 ] |
| 859 } | 893 } |
| 860 } | 894 } |
| 861 } | 895 } |
| 862 | 896 |
| 863 set_defaults("ios_framework_bundle") { | 897 set_defaults("ios_framework_bundle") { |
| 864 configs = default_shared_library_configs | 898 configs = default_shared_library_configs |
| 865 } | 899 } |
| OLD | NEW |