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/mac/base_rules.gni") | 5 import("//build/config/mac/base_rules.gni") |
6 | 6 |
7 # Generates Info.plist files for Mac apps and frameworks. | 7 # Generates Info.plist files for Mac apps and frameworks. |
8 # | 8 # |
9 # Arguments | 9 # Arguments |
10 # | 10 # |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 framework_bundle(target_name) { | 186 framework_bundle(target_name) { |
187 forward_variables_from(invoker, "*", [ "info_plist" ]) | 187 forward_variables_from(invoker, "*", [ "info_plist" ]) |
188 | 188 |
189 if (!defined(deps)) { | 189 if (!defined(deps)) { |
190 deps = [] | 190 deps = [] |
191 } | 191 } |
192 deps += [ ":$_info_plist_bundle_data" ] | 192 deps += [ ":$_info_plist_bundle_data" ] |
193 } | 193 } |
194 } | 194 } |
195 | 195 |
| 196 set_defaults("mac_framework_bundle") { |
| 197 configs = default_shared_library_configs |
| 198 } |
| 199 |
196 # Template to create a Mac executable application bundle. | 200 # Template to create a Mac executable application bundle. |
197 # | 201 # |
198 # Arguments | 202 # Arguments |
199 # | 203 # |
200 # info_plist: | 204 # info_plist: |
201 # (optional) string, path to the Info.plist file that will be used for | 205 # (optional) string, path to the Info.plist file that will be used for |
202 # the bundle. | 206 # the bundle. |
203 # | 207 # |
204 # info_plist_target: | 208 # info_plist_target: |
205 # (optional) string, if the info_plist is generated from an action, | 209 # (optional) string, if the info_plist is generated from an action, |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 ]) | 404 ]) |
401 if (!defined(deps)) { | 405 if (!defined(deps)) { |
402 deps = [] | 406 deps = [] |
403 } | 407 } |
404 deps += [ ":$_loadable_module_bundle_data" ] | 408 deps += [ ":$_loadable_module_bundle_data" ] |
405 | 409 |
406 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" | 410 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" |
407 bundle_executable_dir = "$bundle_root_dir/MacOS" | 411 bundle_executable_dir = "$bundle_root_dir/MacOS" |
408 } | 412 } |
409 } | 413 } |
OLD | NEW |