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 # Should only be running on Mac. | 9 # Should only be running on Mac. |
10 assert(is_mac || is_ios) | 10 assert(is_mac || is_ios) |
11 | 11 |
12 import("//build/toolchain/clang.gni") | 12 import("//build/toolchain/clang.gni") |
13 import("//build/toolchain/goma.gni") | 13 import("//build/toolchain/goma.gni") |
14 | 14 |
15 if (is_clang) { | 15 if (is_clang) { |
16 cc = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang", ".", ro
ot_build_dir) | 16 cc = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang", ".", ro
ot_build_dir) |
17 cxx = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang++", ".",
root_build_dir) | 17 cxx = rebase_path("//third_party/llvm-build/Release+Asserts/bin/clang++", ".",
root_build_dir) |
18 | 18 |
19 # Set the GYP header for all toolchains when running under Clang. | 19 # Set the GYP header for all toolchains when running under Clang. |
20 if (is_gyp) { | 20 if (is_gyp) { |
21 gyp_header = make_clang_global_settings | 21 gyp_header = "'make_global_settings': [" + make_clang_global_settings + "]," |
22 } | 22 } |
23 } else { | 23 } else { |
24 cc = "gcc" | 24 cc = "gcc" |
25 cxx = "g++" | 25 cxx = "g++" |
26 } | 26 } |
27 ld = cxx | 27 ld = cxx |
28 | 28 |
29 # This will copy the gyp-mac-tool to the build directory. We pass in the source | 29 # This will copy the gyp-mac-tool to the build directory. We pass in the source |
30 # file of the win tool. | 30 # file of the win tool. |
31 gyp_mac_tool_source = | 31 gyp_mac_tool_source = |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #} | 90 #} |
91 tool("stamp") { | 91 tool("stamp") { |
92 command = "\${postbuilds}touch \$out" | 92 command = "\${postbuilds}touch \$out" |
93 description = "STAMP \$out" | 93 description = "STAMP \$out" |
94 } | 94 } |
95 tool("copy") { | 95 tool("copy") { |
96 command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$ou
t)" | 96 command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$ou
t)" |
97 description = "COPY \$in \$out" | 97 description = "COPY \$in \$out" |
98 } | 98 } |
99 } | 99 } |
OLD | NEW |