Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: build/toolchain/mac/BUILD.gn

Issue 1418653002: Synchronize GN build configuration with Chrome (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Review feedback addressed Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698