1 # Copyright (c) 2011 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': [ 'somefile.ext', ], 11 'rules': [{ 12 'rule_name': 'rule', 13 'extension': 'ext', 14 'inputs': [ 'rule.py', ], 15 'outputs': [ '<(RULE_INPUT_ROOT).cc', ], 16 'action': [ 'python', 'rule.py', '<(RULE_INPUT_ROOT)', ], 17 'message': 'Processing <(RULE_INPUT_PATH)', 18 'process_outputs_as_sources': 1, 19 # Allows the test to run without hermetic cygwin on windows. 20 'msvs_cygwin_shell': 0, 21 }], 22 }, 23 ], 24 } 25