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

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

Issue 1918263002: [iOS/Mac/GN] Split out common iOS and Mac rules into base_rules.gni. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do'h, SDK path 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/ios/ios_sdk.gni") 5 import("//build/config/mac/base_rules.gni")
6 import("//build/config/mac/rules.gni")
7 6
7 # Generates Info.plist files for Mac apps and frameworks.
8 #
9 # Arguments
10 #
11 # info_plist:
12 # string, the path to an plist file that will be included in the final
13 # Info.plist generated.
14 #
15 # executable_name:
16 # string, name of the generated target used for the product
17 # and executable name as specified in the output Info.plist.
18 #
19 # extra_substitutions:
20 # (optional) string array, 'key=value' pairs for extra fields which are
21 # specified in a source Info.plist template.
8 template("ios_info_plist") { 22 template("ios_info_plist") {
9 info_plist(target_name) { 23 info_plist(target_name) {
10 extra_substitutions = [] 24 extra_substitutions = []
11 if (defined(invoker.extra_substitutions)) { 25 if (defined(invoker.extra_substitutions)) {
12 extra_substitutions = invoker.extra_substitutions 26 extra_substitutions = invoker.extra_substitutions
13 } 27 }
14 extra_substitutions += [ 28 extra_substitutions += [
15 "IOS_DEPLOYMENT_TARGET=$ios_deployment_target", 29 "IOS_DEPLOYMENT_TARGET=$ios_deployment_target",
16 "IOS_PLATFORM_BUILD=$ios_platform_build", 30 "IOS_PLATFORM_BUILD=$ios_platform_build",
17 "IOS_PLATFORM_NAME=$ios_sdk_name", 31 "IOS_PLATFORM_NAME=$ios_sdk_name",
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ] 229 ]
216 } 230 }
217 } 231 }
218 232
219 # Template to package a shared library into an iOS framework bundle. 233 # Template to package a shared library into an iOS framework bundle.
220 # 234 #
221 # This template provides two targets to control whether the framework is 235 # This template provides two targets to control whether the framework is
222 # merely built when targets depend on it, or whether it is linked as well: 236 # merely built when targets depend on it, or whether it is linked as well:
223 # "$target_name" and "$target_name+link". 237 # "$target_name" and "$target_name+link".
224 # 238 #
225 # See the //build/config/mac/rules.gni:framework_bundle for a discussion 239 # See the //build/config/mac/base_rules.gni:framework_bundle for a discussion
226 # and examples. 240 # and examples.
227 # 241 #
228 # Arguments 242 # Arguments
229 # 243 #
230 # output_name: 244 # output_name:
231 # (optional) string, name of the generated framework without the 245 # (optional) string, name of the generated framework without the
232 # .framework suffix. If omitted, defaults to target_name. 246 # .framework suffix. If omitted, defaults to target_name.
233 # 247 #
234 # framework_version: 248 # framework_version:
235 # (optional) string, version of the framework. Typically this is a 249 # (optional) string, version of the framework. Typically this is a
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 [ 418 [
405 "testonly", 419 "testonly",
406 "visibility", 420 "visibility",
407 ]) 421 ])
408 public_deps = [ 422 public_deps = [
409 ":$_framework_target+link", 423 ":$_framework_target+link",
410 ] 424 ]
411 } 425 }
412 } 426 }
413 } 427 }
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