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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 }], | 63 }], |
64 [ 'OS=="win" and target_arch=="ia32"', { | 64 [ 'OS=="win" and target_arch=="ia32"', { |
65 'yasm_flags': [ | 65 'yasm_flags': [ |
66 '-DPREFIX', | 66 '-DPREFIX', |
67 '-fwin32', | 67 '-fwin32', |
68 '-m', 'x86', | 68 '-m', 'x86', |
69 ], | 69 ], |
70 }], | 70 }], |
71 [ 'OS=="win" and target_arch=="x64"', { | 71 [ 'OS=="win" and target_arch=="x64"', { |
72 'yasm_flags': [ | 72 'yasm_flags': [ |
73 '-fx64', | 73 '-fwin64', |
74 '-m', 'amd64', | 74 '-m', 'amd64', |
75 ], | 75 ], |
76 }], | 76 }], |
77 | 77 |
78 # Define output extension. | 78 # Define output extension. |
79 ['OS=="win"', { | 79 ['OS=="win"', { |
80 'asm_obj_extension': 'obj', | 80 'asm_obj_extension': 'obj', |
81 }, { | 81 }, { |
82 'asm_obj_extension': 'o', | 82 'asm_obj_extension': 'o', |
83 }], | 83 }], |
(...skipping 22 matching lines...) Expand all Loading... |
106 '<(yasm_path)', | 106 '<(yasm_path)', |
107 '<@(yasm_flags)', | 107 '<@(yasm_flags)', |
108 '-o', '<(yasm_output_path)/<(RULE_INPUT_ROOT).<(asm_obj_extension)', | 108 '-o', '<(yasm_output_path)/<(RULE_INPUT_ROOT).<(asm_obj_extension)', |
109 '<(RULE_INPUT_PATH)', | 109 '<(RULE_INPUT_PATH)', |
110 ], | 110 ], |
111 'process_outputs_as_sources': 1, | 111 'process_outputs_as_sources': 1, |
112 'message': 'Compile assembly <(RULE_INPUT_PATH).', | 112 'message': 'Compile assembly <(RULE_INPUT_PATH).', |
113 }, | 113 }, |
114 ], # rules | 114 ], # rules |
115 } | 115 } |
OLD | NEW |