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 import("//build/config/mac/symbols.gni") | 8 import("//build/config/mac/symbols.gni") |
9 | 9 |
10 if (is_mac) { | 10 if (is_mac) { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ibtool_flags = [] | 148 ibtool_flags = [] |
149 if (defined(invoker.ibtool_flags)) { | 149 if (defined(invoker.ibtool_flags)) { |
150 ibtool_flags = invoker.ibtool_flags | 150 ibtool_flags = invoker.ibtool_flags |
151 } | 151 } |
152 | 152 |
153 script = "//build/config/mac/compile_xib.py" | 153 script = "//build/config/mac/compile_xib.py" |
154 sources = invoker.sources | 154 sources = invoker.sources |
155 outputs = [ | 155 outputs = [ |
156 "$target_gen_dir/$target_name/{{source_name_part}}.nib", | 156 "$target_gen_dir/$target_name/{{source_name_part}}.nib", |
157 ] | 157 ] |
158 args = | 158 args = [ |
159 [ | 159 "--input", |
160 "--input", | 160 "{{source}}", |
161 "{{source}}", | 161 "--output", |
162 "--output", | 162 rebase_path("$target_gen_dir/$target_name/{{source_name_part}}.nib"), |
163 rebase_path("$target_gen_dir/$target_name/{{source_name_part}}.nib"), | 163 ] |
164 ] + ibtool_flags | 164 if (!use_system_xcode) { |
| 165 args += [ |
| 166 "--developer_dir", |
| 167 hermetic_xcode_path, |
| 168 ] |
| 169 } |
| 170 args += ibtool_flags |
165 } | 171 } |
166 } | 172 } |
OLD | NEW |