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 # This value will be inherited in the toolchain below. | 5 # This value will be inherited in the toolchain below. |
6 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 6 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
7 | 7 |
8 # This template defines a toolchain for something that works like gcc | 8 # This template defines a toolchain for something that works like gcc |
9 # (including clang). | 9 # (including clang). |
10 # | 10 # |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 command += " && " + invoker.postsolink | 153 command += " && " + invoker.postsolink |
154 } | 154 } |
155 rspfile_content = "-Wl,--whole-archive {{inputs}} {{solibs}} -Wl,--no-whol
e-archive $solink_libs_section_prefix {{libs}} $solink_libs_section_postfix" | 155 rspfile_content = "-Wl,--whole-archive {{inputs}} {{solibs}} -Wl,--no-whol
e-archive $solink_libs_section_prefix {{libs}} $solink_libs_section_postfix" |
156 | 156 |
157 description = "SOLINK $sofile" | 157 description = "SOLINK $sofile" |
158 | 158 |
159 # Use this for {{output_extension}} expansions unless a target manually | 159 # Use this for {{output_extension}} expansions unless a target manually |
160 # overrides it (in which case {{output_extension}} will be what the target | 160 # overrides it (in which case {{output_extension}} will be what the target |
161 # specifies). | 161 # specifies). |
162 default_output_extension = ".so" | 162 default_output_extension = ".so" |
| 163 if (defined(invoker.default_output_extension)) { |
| 164 default_output_extension = invoker.default_output_extension |
| 165 } |
163 | 166 |
164 output_prefix = "lib" | 167 output_prefix = "lib" |
165 | 168 |
166 # Since the above commands only updates the .TOC file when it changes, ask | 169 # Since the above commands only updates the .TOC file when it changes, ask |
167 # Ninja to check if the timestamp actually changed to know if downstream | 170 # Ninja to check if the timestamp actually changed to know if downstream |
168 # dependencies should be recompiled. | 171 # dependencies should be recompiled. |
169 restat = true | 172 restat = true |
170 | 173 |
171 # Tell GN about the output files. It will link to the sofile but use the | 174 # Tell GN about the output files. It will link to the sofile but use the |
172 # tocfile for dependency management. | 175 # tocfile for dependency management. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 if (defined(invoker.is_clang)) { | 224 if (defined(invoker.is_clang)) { |
222 is_clang = invoker.is_clang | 225 is_clang = invoker.is_clang |
223 } | 226 } |
224 } | 227 } |
225 | 228 |
226 if (defined(invoker.deps)) { | 229 if (defined(invoker.deps)) { |
227 deps = invoker.deps | 230 deps = invoker.deps |
228 } | 231 } |
229 } | 232 } |
230 } | 233 } |
OLD | NEW |