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 27 matching lines...) Expand all Loading... |
38 "deps", | 38 "deps", |
39 ]) | 39 ]) |
40 | 40 |
41 script = "//build/config/mac/xcrun.py" | 41 script = "//build/config/mac/xcrun.py" |
42 sources = [ | 42 sources = [ |
43 invoker.source, | 43 invoker.source, |
44 ] | 44 ] |
45 outputs = [ | 45 outputs = [ |
46 invoker.output, | 46 invoker.output, |
47 ] | 47 ] |
48 args = [ | 48 args = [] |
| 49 if (!use_system_xcode) { |
| 50 args += [ |
| 51 "--developer_dir", |
| 52 hermetic_xcode_path, |
| 53 ] |
| 54 } |
| 55 args += [ |
49 "plutil", | 56 "plutil", |
50 "-convert", | 57 "-convert", |
51 invoker.format, | 58 invoker.format, |
52 "-o", | 59 "-o", |
53 rebase_path(invoker.output, root_build_dir), | 60 rebase_path(invoker.output, root_build_dir), |
54 rebase_path(invoker.source, root_build_dir), | 61 rebase_path(invoker.source, root_build_dir), |
55 ] | 62 ] |
56 } | 63 } |
57 } | 64 } |
58 | 65 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 ] | 239 ] |
233 if (!use_system_xcode) { | 240 if (!use_system_xcode) { |
234 args += [ | 241 args += [ |
235 "--developer_dir", | 242 "--developer_dir", |
236 hermetic_xcode_path, | 243 hermetic_xcode_path, |
237 ] | 244 ] |
238 } | 245 } |
239 args += ibtool_flags | 246 args += ibtool_flags |
240 } | 247 } |
241 } | 248 } |
OLD | NEW |