| 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 import("//build/toolchain/toolchain.gni") | 5 import("//build/toolchain/toolchain.gni") |
| 6 | 6 |
| 7 # This value will be inherited in the toolchain below. | 7 # This value will be inherited in the toolchain below. |
| 8 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 8 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
| 9 | 9 |
| 10 # This template defines a toolchain for something that works like gcc | 10 # This template defines a toolchain for something that works like gcc |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 command = "$cc -MMD -MF $depfile ${rebuild_string}{{defines}} {{include_di
rs}} {{cflags}} {{cflags_c}} -c {{source}} -o {{output}}" | 166 command = "$cc -MMD -MF $depfile ${rebuild_string}{{defines}} {{include_di
rs}} {{cflags}} {{cflags_c}} -c {{source}} -o {{output}}" |
| 167 depsformat = "gcc" | 167 depsformat = "gcc" |
| 168 description = "ASM {{output}}" | 168 description = "ASM {{output}}" |
| 169 outputs = [ | 169 outputs = [ |
| 170 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", | 170 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", |
| 171 ] | 171 ] |
| 172 } | 172 } |
| 173 | 173 |
| 174 tool("alink") { | 174 tool("alink") { |
| 175 rspfile = "{{output}}.rsp" | 175 rspfile = "{{output}}.rsp" |
| 176 command = "rm -f {{output}} && $ar rcs {{output}} @$rspfile" | 176 command = "rm -f {{output}} && $ar rcs {{arflags}} {{output}} @$rspfile" |
| 177 description = "AR {{output}}" | 177 description = "AR {{output}}" |
| 178 rspfile_content = "{{inputs}}" | 178 rspfile_content = "{{inputs}}" |
| 179 outputs = [ | 179 outputs = [ |
| 180 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", | 180 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", |
| 181 ] | 181 ] |
| 182 default_output_extension = ".a" | 182 default_output_extension = ".a" |
| 183 output_prefix = "lib" | 183 output_prefix = "lib" |
| 184 } | 184 } |
| 185 | 185 |
| 186 tool("solink") { | 186 tool("solink") { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 if (defined(invoker.is_component_build)) { | 307 if (defined(invoker.is_component_build)) { |
| 308 is_component_build = invoker.is_component_build | 308 is_component_build = invoker.is_component_build |
| 309 } | 309 } |
| 310 } | 310 } |
| 311 | 311 |
| 312 if (defined(invoker.deps)) { | 312 if (defined(invoker.deps)) { |
| 313 deps = invoker.deps | 313 deps = invoker.deps |
| 314 } | 314 } |
| 315 } | 315 } |
| 316 } | 316 } |
| OLD | NEW |