Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires | 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires |
| 6 # some enhancements since the commands on Mac are slightly different than on | 6 # some enhancements since the commands on Mac are slightly different than on |
| 7 # Linux. | 7 # Linux. |
| 8 | 8 |
| 9 import("../goma.gni") | 9 import("../goma.gni") |
| 10 | 10 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 } | 189 } |
| 190 | 190 |
| 191 tool("copy") { | 191 tool("copy") { |
| 192 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} & & cp -af {{source}} {{output}})" | 192 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} & & cp -af {{source}} {{output}})" |
| 193 description = "COPY {{source}} {{output}}" | 193 description = "COPY {{source}} {{output}}" |
| 194 } | 194 } |
| 195 | 195 |
| 196 toolchain_args() { | 196 toolchain_args() { |
| 197 current_os = invoker.toolchain_os | 197 current_os = invoker.toolchain_os |
| 198 | 198 |
| 199 # TODO(dpranke): os is here for backwards compatibility. | 199 target_os = current_os |
|
tfarina
2015/04/07 18:03:13
is this correct? should be something else like hos
Dirk Pranke
2015/04/07 18:48:18
No, definitely not. You should never change target
tfarina
2015/04/07 20:06:34
Done.
| |
| 200 os = current_os | |
| 201 } | 200 } |
| 202 } | 201 } |
| 203 } | 202 } |
| 204 | 203 |
| 205 # Toolchain representing the target build (either mac or iOS). | 204 # Toolchain representing the target build (either mac or iOS). |
| 206 mac_clang_toolchain("clang") { | 205 mac_clang_toolchain("clang") { |
| 207 toolchain_os = current_os | 206 toolchain_os = current_os |
| 208 } | 207 } |
| 209 | 208 |
| 210 # This toolchain provides a way for iOS target compiles to reference targets | 209 # This toolchain provides a way for iOS target compiles to reference targets |
| 211 # compiled for the host system. It just overrides the OS back to "mac". | 210 # compiled for the host system. It just overrides the OS back to "mac". |
| 212 mac_clang_toolchain("host_clang") { | 211 mac_clang_toolchain("host_clang") { |
| 213 toolchain_os = "mac" | 212 toolchain_os = "mac" |
| 214 } | 213 } |
| OLD | NEW |