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

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

Issue 1877523002: Mac/iOS/GN: Generate Info.plist files for Mac apps and frameworks with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor out Info.plist generation into its own template. Created 4 years, 8 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
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/ios/ios_sdk.gni")
6 import("//build/config/mac/rules.gni") 6 import("//build/config/mac/rules.gni")
7 7
8 # TODO(crbug.com/297668): refactor this template to extract common behaviour 8 # TODO(crbug.com/297668): refactor this template to extract common behaviour
9 # between OS X and iOS bundle generation, then create a generic "app" template 9 # between OS X and iOS bundle generation, then create a generic "app" template
10 # that forward to "executable" on all platform except iOS/OS X. 10 # that forward to "executable" on all platform except iOS/OS X.
(...skipping 27 matching lines...) Expand all
38 38
39 _output_name = target_name 39 _output_name = target_name
40 _target_name = target_name 40 _target_name = target_name
41 if (defined(invoker.output_name)) { 41 if (defined(invoker.output_name)) {
42 _output_name = invoker.output_name 42 _output_name = invoker.output_name
43 } 43 }
44 44
45 _generate_info_plist = target_name + "_generate_info_plist" 45 _generate_info_plist = target_name + "_generate_info_plist"
46 _bundle_data_info_plist = target_name + "_bundle_data_info_plist" 46 _bundle_data_info_plist = target_name + "_bundle_data_info_plist"
47 47
48 action(_generate_info_plist) { 48 action(_generate_info_plist) {
Robert Sesek 2016/04/19 14:49:04 It would be good to re-implement this in terms of
Patti Lor 2016/04/21 08:02:09 Done.
49 visibility = [ ":$_bundle_data_info_plist" ] 49 visibility = [ ":$_bundle_data_info_plist" ]
50 script = "//build/config/ios/ios_gen_plist.py" 50 script = "//build/config/mac/gen_plist.py"
51 sources = [ 51 sources = [
52 "//build/config/ios/BuildInfo.plist", 52 "//build/config/ios/BuildInfo.plist",
53 invoker.info_plist, 53 invoker.info_plist,
54 ] 54 ]
55 outputs = [ 55 outputs = [
56 "$target_gen_dir/$target_name/Info.plist", 56 "$target_gen_dir/$target_name/Info.plist",
57 ] 57 ]
58 extra_args = [] 58 extra_args = []
59 if (defined(invoker.extra_substitutions)) { 59 if (defined(invoker.extra_substitutions)) {
60 foreach(substitution, invoker.extra_substitutions) { 60 foreach(substitution, invoker.extra_substitutions) {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 deps = [ 386 deps = [
387 ":$_framework_target", 387 ":$_framework_target",
388 ] 388 ]
389 if (!defined(public_configs)) { 389 if (!defined(public_configs)) {
390 public_configs = [] 390 public_configs = []
391 } 391 }
392 public_configs += [ ":$_framework_public_config" ] 392 public_configs += [ ":$_framework_public_config" ]
393 } 393 }
394 } 394 }
395 } 395 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698