OLD | NEW |
1 # Copyright (c) 2009 Google Inc. All rights reserved. | 1 # Copyright (c) 2009 Google Inc. 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 one tests that assembly files ended as .s and .S are compiled. | 5 # This one tests that assembly files ended as .s and .S are compiled. |
6 | 6 |
7 { | 7 { |
8 'target_defaults': { | 8 'target_defaults': { |
9 'conditions': [ | 9 'conditions': [ |
10 ['OS=="win"', { | 10 ['OS=="win"', { |
11 'defines': ['PLATFORM_WIN'], | 11 'defines': ['PLATFORM_WIN'], |
12 }], | 12 }], |
13 ['OS=="mac"', { | 13 ['OS=="mac"', { |
14 'defines': ['PLATFORM_MAC'], | 14 'defines': ['PLATFORM_MAC'], |
15 }], | 15 }], |
16 ['OS=="linux"', { | 16 ['OS=="linux"', { |
17 'defines': ['PLATFORM_LINUX'], | 17 'defines': ['PLATFORM_LINUX'], |
18 }], | 18 }], |
19 ], | 19 ], |
20 }, | 20 }, |
21 'targets': [ | 21 'targets': [ |
22 { | 22 { |
23 'target_name': 'program4', | 23 'target_name': 'program4', |
24 'type': 'executable', | 24 'type': 'executable', |
25 'sources': [ | 25 'sources': [ |
26 'asm-function.asm', | 26 'asm-function.assem', |
27 'program.c', | 27 'program.c', |
28 ], | 28 ], |
29 'conditions': [ | 29 'conditions': [ |
30 ['OS=="linux" or OS=="mac"', { | 30 ['OS=="linux" or OS=="mac"', { |
31 'rules': [ | 31 'rules': [ |
32 { | 32 { |
33 'rule_name': 'convert_asm', | 33 'rule_name': 'convert_assem', |
34 'extension': 'asm', | 34 'extension': 'assem', |
35 'inputs': [], | 35 'inputs': [], |
36 'outputs': [ | 36 'outputs': [ |
37 '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).S', | 37 '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).S', |
38 ], | 38 ], |
39 'action': [ | 39 'action': [ |
40 'bash', '-c', 'mv <(RULE_INPUT_PATH) <@(_outputs)', | 40 'bash', '-c', 'mv <(RULE_INPUT_PATH) <@(_outputs)', |
41 ], | 41 ], |
42 'process_outputs_as_sources': 1, | 42 'process_outputs_as_sources': 1, |
43 }, | 43 }, |
44 ], | 44 ], |
45 }], | 45 }], |
46 ], | 46 ], |
47 }, | 47 }, |
48 ], | 48 ], |
49 } | 49 } |
OLD | NEW |