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

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

Issue 561193004: gn: fix last_commit_position.py and 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 | tools/gn/last_commit_position.py » ('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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 _yasm_flags = [ 77 _yasm_flags = [
78 "-fwin64", 78 "-fwin64",
79 "-m", "amd64", 79 "-m", "amd64",
80 ] 80 ]
81 } 81 }
82 } 82 }
83 83
84 # Default yasm include dirs. Make it match the native build (source root and 84 # Default yasm include dirs. Make it match the native build (source root and
85 # root generated code directory). 85 # root generated code directory).
86 _yasm_flags += [ 86 _yasm_flags += [
87 "-I.",
87 # Using "//." will produce a relative path "../.." which looks better than 88 # Using "//." will produce a relative path "../.." which looks better than
88 # "../../" which will result from using "//" as the base (although both 89 # "../../" which will result from using "//" as the base (although both
89 # work). This is because rebase_path will terminate the result in a slash if 90 # work). This is because rebase_path will terminate the result in a slash if
90 # the input ends in a slash. 91 # the input ends in a slash.
91 "-I" + rebase_path("//.", root_build_dir), 92 "-I" + rebase_path("//.", root_build_dir),
92 "-I" + rebase_path(root_gen_dir, root_build_dir), 93 "-I" + rebase_path(root_gen_dir, root_build_dir),
93 ] 94 ]
94 95
95 if (is_win) { 96 if (is_win) {
96 asm_obj_extension = "obj" 97 asm_obj_extension = "obj"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 source_set(source_set_name) { 180 source_set(source_set_name) {
180 if (defined(invoker.visibility)) { 181 if (defined(invoker.visibility)) {
181 visibility = invoker.visibility 182 visibility = invoker.visibility
182 } 183 }
183 184
184 sources = get_target_outputs(":$action_name") 185 sources = get_target_outputs(":$action_name")
185 186
186 deps = [ ":$action_name" ] 187 deps = [ ":$action_name" ]
187 } 188 }
188 } 189 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/last_commit_position.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698