| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 command = "touch {{output}}" | 179 command = "touch {{output}}" |
| 180 description = "STAMP {{output}}" | 180 description = "STAMP {{output}}" |
| 181 } | 181 } |
| 182 | 182 |
| 183 tool("copy") { | 183 tool("copy") { |
| 184 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &
& cp -af {{source}} {{output}})" | 184 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &
& cp -af {{source}} {{output}})" |
| 185 description = "COPY {{source}} {{output}}" | 185 description = "COPY {{source}} {{output}}" |
| 186 } | 186 } |
| 187 | 187 |
| 188 toolchain_args() { | 188 toolchain_args() { |
| 189 os = invoker.toolchain_os | 189 current_os = invoker.toolchain_os |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 | 193 |
| 194 # Toolchain representing the target build (either mac or iOS). | 194 # Toolchain representing the target build (either mac or iOS). |
| 195 mac_clang_toolchain("clang") { | 195 mac_clang_toolchain("clang") { |
| 196 toolchain_os = os | 196 toolchain_os = current_os |
| 197 } | 197 } |
| 198 | 198 |
| 199 # This toolchain provides a way for iOS target compiles to reference targets | 199 # This toolchain provides a way for iOS target compiles to reference targets |
| 200 # compiled for the host system. It just overrides the OS back to "mac". | 200 # compiled for the host system. It just overrides the OS back to "mac". |
| 201 mac_clang_toolchain("host_clang") { | 201 mac_clang_toolchain("host_clang") { |
| 202 toolchain_os = "mac" | 202 toolchain_os = "mac" |
| 203 } | 203 } |
| OLD | NEW |