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

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

Issue 583753002: Fix yasm_assemble.gni (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 if (defined(invoker.include_dirs)) { 134 if (defined(invoker.include_dirs)) {
135 foreach(include, invoker.include_dirs) { 135 foreach(include, invoker.include_dirs) {
136 args += [ "-I" + rebase_path(include, root_build_dir) ] 136 args += [ "-I" + rebase_path(include, root_build_dir) ]
137 } 137 }
138 } 138 }
139 139
140 # Default yasm include dirs. Make it match the native build (source root and 140 # Default yasm include dirs. Make it match the native build (source root and
141 # root generated code directory). 141 # root generated code directory).
142 # This goes to the end of include list. 142 # This goes to the end of include list.
143 args += [ 143 args += [
144 "-I.",
144 # Using "//." will produce a relative path "../.." which looks better than 145 # Using "//." will produce a relative path "../.." which looks better than
145 # "../../" which will result from using "//" as the base (although both 146 # "../../" which will result from using "//" as the base (although both
146 # work). This is because rebase_path will terminate the result in a 147 # work). This is because rebase_path will terminate the result in a
147 # slash if the input ends in a slash. 148 # slash if the input ends in a slash.
148 "-I" + rebase_path("//.", root_build_dir), 149 "-I" + rebase_path("//.", root_build_dir),
149 "-I" + rebase_path(root_gen_dir, root_build_dir), 150 "-I" + rebase_path(root_gen_dir, root_build_dir),
150 ] 151 ]
151 152
152 153
153 # Extra defines. 154 # Extra defines.
(...skipping 27 matching lines...) Expand all
181 source_set(source_set_name) { 182 source_set(source_set_name) {
182 if (defined(invoker.visibility)) { 183 if (defined(invoker.visibility)) {
183 visibility = invoker.visibility 184 visibility = invoker.visibility
184 } 185 }
185 186
186 sources = get_target_outputs(":$action_name") 187 sources = get_target_outputs(":$action_name")
187 188
188 deps = [ ":$action_name" ] 189 deps = [ ":$action_name" ]
189 } 190 }
190 } 191 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698