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

Side by Side Diff: build/linux/unbundle/yasm.gn

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 | « no previous file | components/crash/content/app/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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 if (current_cpu == "x86") { 5 if (current_cpu == "x86") {
6 _yasm_flags = [ 6 _yasm_flags = [
7 "-felf32", 7 "-felf32",
8 "-m", 8 "-m",
9 "x86", 9 "x86",
10 ] 10 ]
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ] 81 ]
82 82
83 # The wrapper script run_yasm will write the depfile to the same name as 83 # The wrapper script run_yasm will write the depfile to the same name as
84 # the output but with .d appended (like gcc will). 84 # the output but with .d appended (like gcc will).
85 depfile = outputs[0] + ".d" 85 depfile = outputs[0] + ".d"
86 } 86 }
87 87
88 # Gather the .o files into a linkable thing. This doesn't actually link 88 # Gather the .o files into a linkable thing. This doesn't actually link
89 # anything (a source set just compiles files to link later), but will pass 89 # anything (a source set just compiles files to link later), but will pass
90 # the object files generated by the action up the dependency chain. 90 # the object files generated by the action up the dependency chain.
91 source_set(source_set_name) { 91 static_library(source_set_name) {
92 if (defined(invoker.visibility)) { 92 if (defined(invoker.visibility)) {
93 visibility = invoker.visibility 93 visibility = invoker.visibility
94 } 94 }
95 95
96 sources = get_target_outputs(":$action_name") 96 sources = get_target_outputs(":$action_name")
97 97
98 deps = [ 98 deps = [
99 ":$action_name", 99 ":$action_name",
100 ] 100 ]
101 } 101 }
102 } 102 }
OLDNEW
« no previous file with comments | « no previous file | components/crash/content/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698