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 import("//build/config/ios/ios_sdk.gni") | 10 import("//build/config/ios/ios_sdk.gni") |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 rspfile_content = "{{inputs_newline}}" | 181 rspfile_content = "{{inputs_newline}}" |
182 | 182 |
183 description = "SOLINK_MODULE {{output}}" | 183 description = "SOLINK_MODULE {{output}}" |
184 | 184 |
185 # Use this for {{output_extension}} expansions unless a target manually | 185 # Use this for {{output_extension}} expansions unless a target manually |
186 # overrides it (in which case {{output_extension}} will be what the target | 186 # overrides it (in which case {{output_extension}} will be what the target |
187 # specifies). | 187 # specifies). |
188 default_output_extension = ".so" | 188 default_output_extension = ".so" |
189 | 189 |
190 output_prefix = "lib" | |
191 | |
192 outputs = [ | 190 outputs = [ |
193 sofile, | 191 sofile, |
194 ] | 192 ] |
195 } | 193 } |
196 | 194 |
197 tool("link") { | 195 tool("link") { |
198 outfile = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" | 196 outfile = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" |
199 rspfile = "$outfile.rsp" | 197 rspfile = "$outfile.rsp" |
200 command = "$ld {{ldflags}} -o $outfile -Wl,-filelist,$rspfile {{solibs}} {
{libs}}" | 198 command = "$ld {{ldflags}} -o $outfile -Wl,-filelist,$rspfile {{solibs}} {
{libs}}" |
201 description = "LINK $outfile" | 199 description = "LINK $outfile" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 } | 275 } |
278 | 276 |
279 mac_toolchain("x64") { | 277 mac_toolchain("x64") { |
280 toolchain_cpu = "x64" | 278 toolchain_cpu = "x64" |
281 toolchain_os = "mac" | 279 toolchain_os = "mac" |
282 cc = "${goma_prefix}/gcc" | 280 cc = "${goma_prefix}/gcc" |
283 cxx = "${goma_prefix}/g++" | 281 cxx = "${goma_prefix}/g++" |
284 ld = cxx | 282 ld = cxx |
285 is_clang = false | 283 is_clang = false |
286 } | 284 } |
OLD | NEW |