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 import("//build/config/mac/rules.gni") | 5 import("//build/config/mac/rules.gni") |
6 | 6 |
7 assert(is_mac) | 7 assert(is_mac) |
8 | 8 |
9 translated_xibs = [ | 9 translated_xibs = [ |
10 "AppMenu.xib", | 10 "AppMenu.xib", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 action("localizer_table") { | 62 action("localizer_table") { |
63 script = "generate_localizer.py" | 63 script = "generate_localizer.py" |
64 | 64 |
65 sources = translated_xibs | 65 sources = translated_xibs |
66 table_path = "$target_gen_dir/localizer_table.h" | 66 table_path = "$target_gen_dir/localizer_table.h" |
67 outputs = [ | 67 outputs = [ |
68 table_path, | 68 table_path, |
69 ] | 69 ] |
70 args = [ rebase_path(table_path, root_build_dir) ] + | 70 args = [ |
71 rebase_path(translated_xibs, root_build_dir) | 71 "--output_path", |
| 72 rebase_path(table_path, root_build_dir), |
| 73 ] |
| 74 if (!use_system_xcode) { |
| 75 args += [ |
| 76 "--developer_dir", |
| 77 hermetic_xcode_path, |
| 78 ] |
| 79 } |
| 80 args += rebase_path(translated_xibs, root_build_dir) |
72 } | 81 } |
OLD | NEW |