Chromium Code Reviews| 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/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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |