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

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

Issue 1208963003: Move GN obj files to target-specific dirs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 5 years, 5 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/win/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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 # Make these apply to all tools below. 47 # Make these apply to all tools below.
48 lib_switch = "-l" 48 lib_switch = "-l"
49 lib_dir_switch = "-L" 49 lib_dir_switch = "-L"
50 50
51 tool("cc") { 51 tool("cc") {
52 depfile = "{{output}}.d" 52 depfile = "{{output}}.d"
53 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} { {cflags_c}} -c {{source}} -o {{output}}" 53 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} { {cflags_c}} -c {{source}} -o {{output}}"
54 depsformat = "gcc" 54 depsformat = "gcc"
55 description = "CC {{output}}" 55 description = "CC {{output}}"
56 outputs = [ 56 outputs = [
57 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", 57 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o",
58 ] 58 ]
59 } 59 }
60 60
61 tool("cxx") { 61 tool("cxx") {
62 depfile = "{{output}}.d" 62 depfile = "{{output}}.d"
63 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}" 63 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}"
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 "{{target_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}} {{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 "{{source_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_c}} {{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 "{{source_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_cc}} {{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 "{{source_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}}"
105 outputs = [ 105 outputs = [
106 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", 106 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}",
107 ] 107 ]
108 default_output_extension = ".a" 108 default_output_extension = ".a"
(...skipping 116 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/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698