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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 depsformat = "gcc" | 64 depsformat = "gcc" |
65 description = "CXX {{output}}" | 65 description = "CXX {{output}}" |
66 outputs = [ | 66 outputs = [ |
67 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", | 67 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", |
68 ] | 68 ] |
69 } | 69 } |
70 | 70 |
71 tool("asm") { | 71 tool("asm") { |
72 # For GCC we can just use the C compiler to compile assembly. | 72 # For GCC we can just use the C compiler to compile assembly. |
73 depfile = "{{output}}.d" | 73 depfile = "{{output}}.d" |
74 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {
{cflags_c}} -c {{source}} -o {{output}}" | 74 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}}
-c {{source}} -o {{output}}" |
75 depsformat = "gcc" | 75 depsformat = "gcc" |
76 description = "ASM {{output}}" | 76 description = "ASM {{output}}" |
77 outputs = [ | 77 outputs = [ |
78 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", | 78 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", |
79 ] | 79 ] |
80 } | 80 } |
81 | 81 |
82 tool("objc") { | 82 tool("objc") { |
83 depfile = "{{output}}.d" | 83 depfile = "{{output}}.d" |
84 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}}
{{cflags_c}} {{cflags_objc}} -c {{source}} -o {{output}}" | 84 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}}
{{cflags_c}} {{cflags_objc}} -c {{source}} -o {{output}}" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 mac_toolchain("x64") { | 227 mac_toolchain("x64") { |
228 toolchain_cpu = "x64" | 228 toolchain_cpu = "x64" |
229 toolchain_os = "mac" | 229 toolchain_os = "mac" |
230 cc = "${goma_prefix}/gcc" | 230 cc = "${goma_prefix}/gcc" |
231 cxx = "${goma_prefix}/g++" | 231 cxx = "${goma_prefix}/g++" |
232 ld = cxx | 232 ld = cxx |
233 is_clang = false | 233 is_clang = false |
234 } | 234 } |
OLD | NEW |