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 # Should only be running on Windows. | |
|
Nico
2013/10/28 23:05:14
s/Windows/Mac/
| |
| 6 assert(is_mac) | |
| 7 | |
| 5 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) |
| 6 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) |
| 7 ld = cxx | 10 ld = cxx |
| 8 | 11 |
| 12 # This will copy the gyp-mac-tool to the build directory. We pass in the source | |
| 13 # file of the win tool. | |
| 14 gyp_mac_tool_source = | |
| 15 rebase_path("//tools/gyp/pylib/gyp/mac_tool.py", ".", root_build_dir) | |
| 16 exec_script("setup_toolchain.py", [ gyp_mac_tool_source ], "value") | |
| 17 | |
| 9 toolchain("clang") { | 18 toolchain("clang") { |
| 10 # Make these apply to all tools below. | 19 # Make these apply to all tools below. |
| 11 lib_prefix = "-l" | 20 lib_prefix = "-l" |
| 12 lib_dir_prefix="-L" | 21 lib_dir_prefix="-L" |
| 13 | 22 |
| 14 tool("cc") { | 23 tool("cc") { |
| 15 command = "$cc -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_c \$c flags_pch_c -c \$in -o \$out" | 24 command = "$cc -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_c \$c flags_pch_c -c \$in -o \$out" |
| 16 description = "CC \$out" | 25 description = "CC \$out" |
| 17 depfile = "\$out.d" | 26 depfile = "\$out.d" |
| 18 deps = "gcc" | 27 deps = "gcc" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 #} | 73 #} |
| 65 tool("stamp") { | 74 tool("stamp") { |
| 66 command = "\${postbuilds}touch \$out" | 75 command = "\${postbuilds}touch \$out" |
| 67 description = "STAMP \$out" | 76 description = "STAMP \$out" |
| 68 } | 77 } |
| 69 tool("copy") { | 78 tool("copy") { |
| 70 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)" |
| 71 description = "COPY \$in \$out" | 80 description = "COPY \$in \$out" |
| 72 } | 81 } |
| 73 } | 82 } |
| OLD | NEW |