OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 is an gyp include to use YASM for compiling assembly files. | 5 # This is an gyp include to use YASM for compiling assembly files. |
6 # | 6 # |
7 # Files to be compiled with YASM should have an extension of .asm. | 7 # Files to be compiled with YASM should have an extension of .asm. |
8 # | 8 # |
9 # There are two variables for this include: | 9 # There are two variables for this include: |
10 # yasm_flags : Pass additional flags into YASM. | 10 # yasm_flags : Pass additional flags into YASM. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 '-felf64', | 48 '-felf64', |
49 '-m', 'amd64', | 49 '-m', 'amd64', |
50 ], | 50 ], |
51 }], | 51 }], |
52 [ 'OS=="mac" and target_arch=="ia32"', { | 52 [ 'OS=="mac" and target_arch=="ia32"', { |
53 'yasm_flags': [ | 53 'yasm_flags': [ |
54 '-fmacho32', | 54 '-fmacho32', |
55 '-m', 'x86', | 55 '-m', 'x86', |
56 ], | 56 ], |
57 }], | 57 }], |
58 [ 'OS=="mac" and target_arch=="x64"', { | |
59 'yasm_flags': [ | |
60 '-fmacho64', | |
61 '-m', 'amd64', # yasm uses 'amd64' as flag for the 64-bit instruction set. | |
Mark Mentovai
2012/09/19 13:50:53
80 characters.
I actually don’t think the comment
| |
62 ], | |
63 }], | |
58 [ 'OS=="win" and target_arch=="ia32"', { | 64 [ 'OS=="win" and target_arch=="ia32"', { |
59 'yasm_flags': [ | 65 'yasm_flags': [ |
60 '-DPREFIX', | 66 '-DPREFIX', |
61 '-fwin32', | 67 '-fwin32', |
62 '-m', 'x86', | 68 '-m', 'x86', |
63 ], | 69 ], |
64 }], | 70 }], |
65 | 71 |
66 # Define output extension. | 72 # Define output extension. |
67 ['OS=="win"', { | 73 ['OS=="win"', { |
(...skipping 26 matching lines...) Expand all Loading... | |
94 '<(yasm_path)', | 100 '<(yasm_path)', |
95 '<@(yasm_flags)', | 101 '<@(yasm_flags)', |
96 '-o', '<(yasm_output_path)/<(RULE_INPUT_ROOT).<(asm_obj_extension)', | 102 '-o', '<(yasm_output_path)/<(RULE_INPUT_ROOT).<(asm_obj_extension)', |
97 '<(RULE_INPUT_PATH)', | 103 '<(RULE_INPUT_PATH)', |
98 ], | 104 ], |
99 'process_outputs_as_sources': 1, | 105 'process_outputs_as_sources': 1, |
100 'message': 'Compile assembly <(RULE_INPUT_PATH).', | 106 'message': 'Compile assembly <(RULE_INPUT_PATH).', |
101 }, | 107 }, |
102 ], # rules | 108 ], # rules |
103 } | 109 } |
OLD | NEW |