OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |