| 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/toolchain/toolchain.gni") | 5 import("//build/toolchain/toolchain.gni") |
| 6 import("//build/config/mac/mac_sdk.gni") | 6 import("//build/config/mac/mac_sdk.gni") |
| 7 | 7 |
| 8 # The base template used to generate Info.plist files for iOS and Mac apps and | 8 # The base template used to generate Info.plist files for iOS and Mac apps and |
| 9 # frameworks. | 9 # frameworks. |
| 10 # | 10 # |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 _target_name = target_name | 354 _target_name = target_name |
| 355 _compile_target_name = _target_name + "_compile_ibtool" | 355 _compile_target_name = _target_name + "_compile_ibtool" |
| 356 | 356 |
| 357 compile_xibs(_compile_target_name) { | 357 compile_xibs(_compile_target_name) { |
| 358 forward_variables_from(invoker, [ "testonly" ]) | 358 forward_variables_from(invoker, [ "testonly" ]) |
| 359 visibility = [ ":$_target_name" ] | 359 visibility = [ ":$_target_name" ] |
| 360 sources = invoker.sources | 360 sources = invoker.sources |
| 361 ibtool_flags = [ | 361 ibtool_flags = [ |
| 362 "--minimum-deployment-target", | 362 "--minimum-deployment-target", |
| 363 mac_deployment_target, | 363 mac_deployment_target, |
| 364 "--target-device", | 364 |
| 365 "mac", | 365 # TODO(rsesek): Enable this once all the bots are on Xcode 7+. |
| 366 # "--target-device", |
| 367 # "mac", |
| 366 ] | 368 ] |
| 367 } | 369 } |
| 368 | 370 |
| 369 bundle_data(_target_name) { | 371 bundle_data(_target_name) { |
| 370 forward_variables_from(invoker, | 372 forward_variables_from(invoker, |
| 371 [ | 373 [ |
| 372 "testonly", | 374 "testonly", |
| 373 "visibility", | 375 "visibility", |
| 374 ]) | 376 ]) |
| 375 | 377 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 ]) | 606 ]) |
| 605 if (!defined(deps)) { | 607 if (!defined(deps)) { |
| 606 deps = [] | 608 deps = [] |
| 607 } | 609 } |
| 608 deps += [ ":$_loadable_module_bundle_data" ] | 610 deps += [ ":$_loadable_module_bundle_data" ] |
| 609 | 611 |
| 610 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" | 612 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" |
| 611 bundle_executable_dir = "$bundle_root_dir/MacOS" | 613 bundle_executable_dir = "$bundle_root_dir/MacOS" |
| 612 } | 614 } |
| 613 } | 615 } |
| OLD | NEW |