| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 provides the yasm_assemble() template which uses YASM to assemble | 5 # This provides the yasm_assemble() template which uses YASM to assemble |
| 6 # assembly files. | 6 # assembly files. |
| 7 # | 7 # |
| 8 # Files to be assembled with YASM should have an extension of .asm. | 8 # Files to be assembled with YASM should have an extension of .asm. |
| 9 # | 9 # |
| 10 # Parameters | 10 # Parameters |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 ] | 175 ] |
| 176 | 176 |
| 177 # The wrapper script run_yasm will write the depfile to the same name as | 177 # The wrapper script run_yasm will write the depfile to the same name as |
| 178 # the output but with .d appended (like gcc will). | 178 # the output but with .d appended (like gcc will). |
| 179 depfile = outputs[0] + ".d" | 179 depfile = outputs[0] + ".d" |
| 180 } | 180 } |
| 181 | 181 |
| 182 # Gather the .o files into a linkable thing. This doesn't actually link | 182 # Gather the .o files into a linkable thing. This doesn't actually link |
| 183 # anything (a source set just compiles files to link later), but will pass | 183 # anything (a source set just compiles files to link later), but will pass |
| 184 # the object files generated by the action up the dependency chain. | 184 # the object files generated by the action up the dependency chain. |
| 185 source_set(source_set_name) { | 185 static_library(source_set_name) { |
| 186 if (defined(invoker.visibility)) { | 186 if (defined(invoker.visibility)) { |
| 187 visibility = invoker.visibility | 187 visibility = invoker.visibility |
| 188 } | 188 } |
| 189 | 189 |
| 190 sources = get_target_outputs(":$action_name") | 190 sources = get_target_outputs(":$action_name") |
| 191 | 191 |
| 192 deps = [ | 192 deps = [ |
| 193 ":$action_name", | 193 ":$action_name", |
| 194 ] | 194 ] |
| 195 } | 195 } |
| 196 } | 196 } |
| OLD | NEW |