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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 # extra_substitutions: | 223 # extra_substitutions: |
224 # (optional) list of string in "key=value" format, each value will | 224 # (optional) list of string in "key=value" format, each value will |
225 # be used as an additional variable substitution rule when generating | 225 # be used as an additional variable substitution rule when generating |
226 # the application Info.plist | 226 # the application Info.plist |
227 # | 227 # |
228 # info_plist: | 228 # info_plist: |
229 # path to the template to use to generate the application Info.plist | 229 # path to the template to use to generate the application Info.plist |
230 # by performing variable substitutions. | 230 # by performing variable substitutions. |
231 # | 231 # |
232 # For more information, see "gn help executable". | 232 # For more information, see "gn help executable". |
233 template("ios_appext_bundle") { | 233 template("ios_appex_bundle") { |
234 ios_app_bundle(target_name) { | 234 ios_app_bundle(target_name) { |
235 forward_variables_from(invoker, | 235 forward_variables_from(invoker, |
236 "*", | 236 "*", |
237 [ | 237 [ |
238 "bundle_extension", | 238 "bundle_extension", |
239 "product_type", | 239 "product_type", |
240 ]) | 240 ]) |
241 bundle_extension = ".appext" | 241 bundle_extension = ".appex" |
242 product_type = "com.apple.product-type.app-extension" | 242 product_type = "com.apple.product-type.app-extension" |
243 | 243 |
244 # Add linker flags required for an application extension (determined by | 244 # Add linker flags required for an application extension (determined by |
245 # inspecting the link command-line when using Xcode 9.0+). | 245 # inspecting the link command-line when using Xcode 9.0+). |
246 if (!defined(ldflags)) { | 246 if (!defined(ldflags)) { |
247 ldflags = [] | 247 ldflags = [] |
248 } | 248 } |
249 ldflags += [ | 249 ldflags += [ |
250 "-e", | 250 "-e", |
251 "_NSExtensionMain", | 251 "_NSExtensionMain", |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 [ | 493 [ |
494 "testonly", | 494 "testonly", |
495 "visibility", | 495 "visibility", |
496 ]) | 496 ]) |
497 public_deps = [ | 497 public_deps = [ |
498 ":$_framework_target+link", | 498 ":$_framework_target+link", |
499 ] | 499 ] |
500 } | 500 } |
501 } | 501 } |
502 } | 502 } |
OLD | NEW |