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

Side by Side Diff: third_party/yasm/yasm_assemble.gni

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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 | « third_party/yasm/BUILD.gn ('k') | tools/android/forwarder2/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 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 } 166 }
167 167
168 # Output file. 168 # Output file.
169 # 169 #
170 # TODO(brettw) it might be nice if there was a source expansion for the 170 # TODO(brettw) it might be nice if there was a source expansion for the
171 # path of the source file relative to the source root. Then we could 171 # path of the source file relative to the source root. Then we could
172 # exactly duplicate the naming and location of object files from the 172 # exactly duplicate the naming and location of object files from the
173 # native build, which would be: 173 # native build, which would be:
174 # "$root_out_dir/${target_name}.{{source_dir_part}}.$asm_obj_extension" 174 # "$root_out_dir/${target_name}.{{source_dir_part}}.$asm_obj_extension"
175 outputs = [ "$target_out_dir/{{source_name_part}}.o" ] 175 outputs = [
176 "$target_out_dir/{{source_name_part}}.o",
177 ]
176 args += [ 178 args += [
177 "-o", 179 "-o",
178 rebase_path(outputs[0], root_build_dir), 180 rebase_path(outputs[0], root_build_dir),
179 "{{source}}", 181 "{{source}}",
180 ] 182 ]
181 183
182 # The wrapper script run_yasm will write the depfile to the same name as 184 # The wrapper script run_yasm will write the depfile to the same name as
183 # the output but with .d appended (like gcc will). 185 # the output but with .d appended (like gcc will).
184 depfile = outputs[0] + ".d" 186 depfile = outputs[0] + ".d"
185 } 187 }
186 188
187 # Gather the .o files into a linkable thing. This doesn't actually link 189 # Gather the .o files into a linkable thing. This doesn't actually link
188 # anything (a source set just compiles files to link later), but will pass 190 # anything (a source set just compiles files to link later), but will pass
189 # the object files generated by the action up the dependency chain. 191 # the object files generated by the action up the dependency chain.
190 source_set(source_set_name) { 192 source_set(source_set_name) {
191 if (defined(invoker.visibility)) { 193 if (defined(invoker.visibility)) {
192 visibility = invoker.visibility 194 visibility = invoker.visibility
193 } 195 }
194 196
195 sources = get_target_outputs(":$action_name") 197 sources = get_target_outputs(":$action_name")
196 198
197 deps = [ 199 deps = [
198 ":$action_name", 200 ":$action_name",
199 ] 201 ]
200 } 202 }
201 } 203 }
OLDNEW
« no previous file with comments | « third_party/yasm/BUILD.gn ('k') | tools/android/forwarder2/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698