| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 # This file contains rules that are shared between Mac and iOS. | 5 # This file contains rules that are shared between Mac and iOS. |
| 6 | 6 |
| 7 import("//build/toolchain/toolchain.gni") | 7 import("//build/toolchain/toolchain.gni") |
| 8 | 8 |
| 9 if (is_mac) { | 9 if (is_mac) { |
| 10 import("//build/config/mac/mac_sdk.gni") | 10 import("//build/config/mac/mac_sdk.gni") |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 "Sources must be specified for $target_name") | 359 "Sources must be specified for $target_name") |
| 360 | 360 |
| 361 ibtool_flags = [] | 361 ibtool_flags = [] |
| 362 if (defined(invoker.ibtool_flags)) { | 362 if (defined(invoker.ibtool_flags)) { |
| 363 ibtool_flags = invoker.ibtool_flags | 363 ibtool_flags = invoker.ibtool_flags |
| 364 } | 364 } |
| 365 | 365 |
| 366 script = "//build/config/mac/compile_xib.py" | 366 script = "//build/config/mac/compile_xib.py" |
| 367 sources = invoker.sources | 367 sources = invoker.sources |
| 368 outputs = [ | 368 outputs = [ |
| 369 "$target_gen_dir/{{source_name_part}}.nib", | 369 "$target_gen_dir/$target_name/{{source_name_part}}.nib", |
| 370 ] | 370 ] |
| 371 args = [ | 371 args = |
| 372 "--input", | 372 [ |
| 373 "{{source}}", | 373 "--input", |
| 374 "--output", | 374 "{{source}}", |
| 375 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), | 375 "--output", |
| 376 ] + ibtool_flags | 376 rebase_path("$target_gen_dir/$target_name/{{source_name_part}}.nib"), |
| 377 ] + ibtool_flags |
| 377 } | 378 } |
| 378 } | 379 } |
| OLD | NEW |