Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: build/config/ios/rules.gni

Issue 1916713005: [Mac/GN] Allow the info_plist template caller to specify the plist format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-split-rules
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/mac/base_rules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #
11 # info_plist: 11 # info_plist:
12 # string, the path to an plist file that will be included in the final 12 # string, the path to an plist file that will be included in the final
13 # Info.plist generated. 13 # Info.plist generated.
14 # 14 #
15 # executable_name: 15 # executable_name:
16 # string, name of the generated target used for the product 16 # string, name of the generated target used for the product
17 # and executable name as specified in the output Info.plist. 17 # and executable name as specified in the output Info.plist.
18 # 18 #
19 # extra_substitutions: 19 # extra_substitutions:
20 # (optional) string array, 'key=value' pairs for extra fields which are 20 # (optional) string array, 'key=value' pairs for extra fields which are
21 # specified in a source Info.plist template. 21 # specified in a source Info.plist template.
22 template("ios_info_plist") { 22 template("ios_info_plist") {
23 info_plist(target_name) { 23 info_plist(target_name) {
24 format = "binary1"
24 extra_substitutions = [] 25 extra_substitutions = []
25 if (defined(invoker.extra_substitutions)) { 26 if (defined(invoker.extra_substitutions)) {
26 extra_substitutions = invoker.extra_substitutions 27 extra_substitutions = invoker.extra_substitutions
27 } 28 }
28 extra_substitutions += [ 29 extra_substitutions += [
29 "IOS_DEPLOYMENT_TARGET=$ios_deployment_target", 30 "IOS_DEPLOYMENT_TARGET=$ios_deployment_target",
30 "IOS_PLATFORM_BUILD=$ios_platform_build", 31 "IOS_PLATFORM_BUILD=$ios_platform_build",
31 "IOS_PLATFORM_NAME=$ios_sdk_name", 32 "IOS_PLATFORM_NAME=$ios_sdk_name",
32 "IOS_PLATFORM_VERSION=$ios_sdk_version", 33 "IOS_PLATFORM_VERSION=$ios_sdk_version",
33 "IOS_SDK_BUILD=$ios_sdk_build", 34 "IOS_SDK_BUILD=$ios_sdk_build",
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 [ 419 [
419 "testonly", 420 "testonly",
420 "visibility", 421 "visibility",
421 ]) 422 ])
422 public_deps = [ 423 public_deps = [
423 ":$_framework_target+link", 424 ":$_framework_target+link",
424 ] 425 ]
425 } 426 }
426 } 427 }
427 } 428 }
OLDNEW
« no previous file with comments | « no previous file | build/config/mac/base_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698