| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 _target_name = target_name | 52 _target_name = target_name |
| 53 _compile_target_name = _target_name + "_compile_ibtool" | 53 _compile_target_name = _target_name + "_compile_ibtool" |
| 54 | 54 |
| 55 compile_xibs(_compile_target_name) { | 55 compile_xibs(_compile_target_name) { |
| 56 forward_variables_from(invoker, [ "testonly" ]) | 56 forward_variables_from(invoker, [ "testonly" ]) |
| 57 visibility = [ ":$_target_name" ] | 57 visibility = [ ":$_target_name" ] |
| 58 sources = invoker.sources | 58 sources = invoker.sources |
| 59 ibtool_flags = [ | 59 ibtool_flags = [ |
| 60 "--minimum-deployment-target", | 60 "--minimum-deployment-target", |
| 61 mac_deployment_target, | 61 mac_deployment_target, |
| 62 "--target-device", | 62 |
| 63 "mac", | 63 # TODO(rsesek): Enable this once all the bots are on Xcode 7+. |
| 64 # "--target-device", |
| 65 # "mac", |
| 64 ] | 66 ] |
| 65 } | 67 } |
| 66 | 68 |
| 67 bundle_data(_target_name) { | 69 bundle_data(_target_name) { |
| 68 forward_variables_from(invoker, | 70 forward_variables_from(invoker, |
| 69 [ | 71 [ |
| 70 "testonly", | 72 "testonly", |
| 71 "visibility", | 73 "visibility", |
| 72 ]) | 74 ]) |
| 73 | 75 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ]) | 304 ]) |
| 303 if (!defined(deps)) { | 305 if (!defined(deps)) { |
| 304 deps = [] | 306 deps = [] |
| 305 } | 307 } |
| 306 deps += [ ":$_loadable_module_bundle_data" ] | 308 deps += [ ":$_loadable_module_bundle_data" ] |
| 307 | 309 |
| 308 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" | 310 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" |
| 309 bundle_executable_dir = "$bundle_root_dir/MacOS" | 311 bundle_executable_dir = "$bundle_root_dir/MacOS" |
| 310 } | 312 } |
| 311 } | 313 } |
| OLD | NEW |