| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 70 #     sources: | 70 #     sources: | 
| 71 #         list of string, sources to comiple | 71 #         list of string, sources to comiple | 
| 72 # | 72 # | 
| 73 #     output_path: | 73 #     output_path: | 
| 74 #         (optional) string, the path to use for the outputs list in the | 74 #         (optional) string, the path to use for the outputs list in the | 
| 75 #         bundle_data step. If unspecified, defaults to bundle_resources_dir. | 75 #         bundle_data step. If unspecified, defaults to bundle_resources_dir. | 
| 76 template("mac_xib_bundle_data") { | 76 template("mac_xib_bundle_data") { | 
| 77   _target_name = target_name | 77   _target_name = target_name | 
| 78   _compile_target_name = _target_name + "_compile_ibtool" | 78   _compile_target_name = _target_name + "_compile_ibtool" | 
| 79 | 79 | 
| 80   compile_xibs(_compile_target_name) { | 80   compile_ib_files(_compile_target_name) { | 
| 81     forward_variables_from(invoker, [ "testonly" ]) | 81     forward_variables_from(invoker, [ "testonly" ]) | 
| 82     visibility = [ ":$_target_name" ] | 82     visibility = [ ":$_target_name" ] | 
| 83     sources = invoker.sources | 83     sources = invoker.sources | 
|  | 84     output_extension = "nib" | 
| 84     ibtool_flags = [ | 85     ibtool_flags = [ | 
| 85       "--minimum-deployment-target", | 86       "--minimum-deployment-target", | 
| 86       mac_deployment_target, | 87       mac_deployment_target, | 
| 87 | 88 | 
| 88       # TODO(rsesek): Enable this once all the bots are on Xcode 7+. | 89       # TODO(rsesek): Enable this once all the bots are on Xcode 7+. | 
| 89       # "--target-device", | 90       # "--target-device", | 
| 90       # "mac", | 91       # "mac", | 
| 91     ] | 92     ] | 
| 92   } | 93   } | 
| 93 | 94 | 
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 682                            ]) | 683                            ]) | 
| 683     if (!defined(deps)) { | 684     if (!defined(deps)) { | 
| 684       deps = [] | 685       deps = [] | 
| 685     } | 686     } | 
| 686     deps += [ ":$_loadable_module_bundle_data" ] | 687     deps += [ ":$_loadable_module_bundle_data" ] | 
| 687 | 688 | 
| 688     bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" | 689     bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" | 
| 689     bundle_executable_dir = "$bundle_root_dir/MacOS" | 690     bundle_executable_dir = "$bundle_root_dir/MacOS" | 
| 690   } | 691   } | 
| 691 } | 692 } | 
| OLD | NEW | 
|---|