| 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 # Should only be running on Mac. | 5 # Should only be running on Mac. |
| 6 assert(is_mac) | 6 assert(is_mac || is_ios) |
| 7 | 7 |
| 8 cc = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang", ".", root
_build_dir) | 8 cc = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang", ".", root
_build_dir) |
| 9 cxx = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang++", ".", r
oot_build_dir) | 9 cxx = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang++", ".", r
oot_build_dir) |
| 10 ld = cxx | 10 ld = cxx |
| 11 | 11 |
| 12 # This will copy the gyp-mac-tool to the build directory. We pass in the source | 12 # This will copy the gyp-mac-tool to the build directory. We pass in the source |
| 13 # file of the win tool. | 13 # file of the win tool. |
| 14 gyp_mac_tool_source = | 14 gyp_mac_tool_source = |
| 15 rebase_path("//tools/gyp/pylib/gyp/mac_tool.py", ".", root_build_dir) | 15 rebase_path("//tools/gyp/pylib/gyp/mac_tool.py", ".", root_build_dir) |
| 16 exec_script("setup_toolchain.py", [ gyp_mac_tool_source ], "value") | 16 exec_script("setup_toolchain.py", [ gyp_mac_tool_source ], "value") |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #} | 73 #} |
| 74 tool("stamp") { | 74 tool("stamp") { |
| 75 command = "\${postbuilds}touch \$out" | 75 command = "\${postbuilds}touch \$out" |
| 76 description = "STAMP \$out" | 76 description = "STAMP \$out" |
| 77 } | 77 } |
| 78 tool("copy") { | 78 tool("copy") { |
| 79 command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$ou
t)" | 79 command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$ou
t)" |
| 80 description = "COPY \$in \$out" | 80 description = "COPY \$in \$out" |
| 81 } | 81 } |
| 82 } | 82 } |
| OLD | NEW |