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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'program', | 8 'target_name': 'program', |
9 'type': 'executable', | 9 'type': 'executable', |
10 'msvs_cygwin_shell': 0, | 10 'msvs_cygwin_shell': 0, |
11 'sources': [ | 11 'sources': [ |
12 'program.c', | 12 'program.c', |
13 'function1.in', | 13 'function1.in', |
14 'function2.in', | 14 'function2.in', |
15 ], | 15 ], |
16 'rules': [ | 16 'rules': [ |
17 { | 17 { |
18 'rule_name': 'copy_file', | 18 'rule_name': 'copy_file', |
19 'extension': 'in', | 19 'extension': 'in', |
20 'inputs': [ | 20 'inputs': [ |
21 '../copy-file.py', | 21 '../copy-file.py', |
22 ], | 22 ], |
23 'outputs': [ | 23 'outputs': [ |
24 # TODO: fix SCons and Make to support generated files not | 24 # TODO: fix Make to support generated files not |
25 # in a variable-named path like <(INTERMEDIATE_DIR) | 25 # in a variable-named path like <(INTERMEDIATE_DIR) |
26 #'<(RULE_INPUT_ROOT).c', | 26 #'<(RULE_INPUT_ROOT).c', |
27 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).c', | 27 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).c', |
28 ], | 28 ], |
29 'action': [ | 29 'action': [ |
30 'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', | 30 'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', |
31 ], | 31 ], |
32 'process_outputs_as_sources': 1, | 32 'process_outputs_as_sources': 1, |
33 }, | 33 }, |
34 ], | 34 ], |
35 }, | 35 }, |
36 ], | 36 ], |
37 } | 37 } |
OLD | NEW |