| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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}} {{cflags}} {
{cflags_c}} -c {{source}} -o {{output}}" |
| 75 depsformat = "gcc" | 75 depsformat = "gcc" |
| 76 description = "ASM {{output}}" | 76 description = "ASM {{output}}" |
| 77 outputs = [ | 77 outputs = [ |
| 78 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", | 78 "{{target_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_objc}} -c {{source}} -o {{output}}" |
| 85 depsformat = "gcc" | 85 depsformat = "gcc" |
| 86 description = "OBJC {{output}}" | 86 description = "OBJC {{output}}" |
| 87 outputs = [ | 87 outputs = [ |
| 88 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", | 88 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", |
| 89 ] | 89 ] |
| 90 } | 90 } |
| 91 | 91 |
| 92 tool("objcxx") { | 92 tool("objcxx") { |
| 93 depfile = "{{output}}.d" | 93 depfile = "{{output}}.d" |
| 94 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}}
{{cflags_cc}} {{cflags_objcc}} -c {{source}} -o {{output}}" | 94 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}}
{{cflags_objcc}} -c {{source}} -o {{output}}" |
| 95 depsformat = "gcc" | 95 depsformat = "gcc" |
| 96 description = "OBJCXX {{output}}" | 96 description = "OBJCXX {{output}}" |
| 97 outputs = [ | 97 outputs = [ |
| 98 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", | 98 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", |
| 99 ] | 99 ] |
| 100 } | 100 } |
| 101 | 101 |
| 102 tool("alink") { | 102 tool("alink") { |
| 103 command = "rm -f {{output}} && ./gyp-mac-tool filter-libtool libtool -stat
ic -o {{output}} {{inputs}}" | 103 command = "rm -f {{output}} && ./gyp-mac-tool filter-libtool libtool -stat
ic -o {{output}} {{inputs}}" |
| 104 description = "LIBTOOL-STATIC {{output}}" | 104 description = "LIBTOOL-STATIC {{output}}" |
| (...skipping 120 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 |