| OLD | NEW |
| 1 # Copyright (c) 2011 Google Inc. All rights reserved. | 1 # Copyright (c) 2015 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': 'test', | 8 'target_name': 'test', |
| 9 'type': 'executable', | 9 'type': 'executable', |
| 10 'sources': [ 'somefile.ext', ], | 10 'sources': ['rule.ext'], |
| 11 'rules': [{ | 11 'rules': [{ |
| 12 'rule_name': 'rule', | 12 'rule_name': 'rule', |
| 13 'extension': 'ext', | 13 'extension': 'ext', |
| 14 'inputs': [ 'rule.py', ], | 14 'inputs': [ 'rule.py', ], |
| 15 'outputs': [ '<(RULE_INPUT_ROOT).cc', ], | 15 'action': [ |
| 16 'action': [ 'python', 'rule.py', '<(RULE_INPUT_ROOT)', ], | 16 'python', |
| 17 'rule.py', |
| 18 '<(RULE_INPUT_ROOT)', |
| 19 '<(RULE_INPUT_EXT)', |
| 20 '<(RULE_INPUT_DIRNAME)', |
| 21 '<(RULE_INPUT_NAME)', |
| 22 '<(RULE_INPUT_PATH)', |
| 23 ], |
| 24 'outputs': [ 'hello_world.txt' ], |
| 25 'sources': ['rule.ext'], |
| 17 'message': 'Processing <(RULE_INPUT_PATH)', | 26 'message': 'Processing <(RULE_INPUT_PATH)', |
| 18 'process_outputs_as_sources': 1, | 27 'process_outputs_as_sources': 1, |
| 19 # Allows the test to run without hermetic cygwin on windows. | 28 # Allows the test to run without hermetic cygwin on windows. |
| 20 'msvs_cygwin_shell': 0, | 29 'msvs_cygwin_shell': 0, |
| 21 }], | 30 }], |
| 22 }, | 31 }, |
| 23 ], | 32 ], |
| 24 } | 33 } |
| OLD | NEW |