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

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

Issue 2114783002: Shrink chrome_elf.dll by switching source_sets to static_library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 | « components/crash/content/app/BUILD.gn ('k') | no next file » | 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « components/crash/content/app/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698