Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'test', |
| 9 | 'type': 'executable', |
| 10 | 'sources': ['rule.ext'], |
| 11 | 'rules': [{ |
| 12 | 'rule_name': 'rule', |
| 13 | 'extension': 'ext', |
| 14 | 'inputs': [ 'rule.py', ], |
| 15 | 'action': [ |
| 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'], |
| 26 | 'message': 'Processing <(RULE_INPUT_PATH)', |
| 27 | 'process_outputs_as_sources': 1, |
| 28 | # Allows the test to run without hermetic cygwin on windows. |
| 29 | 'msvs_cygwin_shell': 0, |
| 30 | }], |
| 31 | }, |
| 32 | ], |
| 33 | } |