| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |