OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012 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 # Test the case where there's no action but there are input rules that should |
| 6 # be processed results in a gyp failure. |
| 7 { |
| 8 'targets': [ |
| 9 { |
| 10 'target_name': 'extension_does_match_sources_but_no_action', |
| 11 'type': 'none', |
| 12 'msvs_cygwin_shell': 0, |
| 13 'sources': [ |
| 14 'file1.in', |
| 15 ], |
| 16 'rules': [ |
| 17 { |
| 18 'rule_name': 'assembled', |
| 19 'extension': 'in', |
| 20 'outputs': [ |
| 21 '<(RULE_INPUT_ROOT).in', |
| 22 ], |
| 23 'conditions': [ |
| 24 # Always fails. |
| 25 [ '"true"=="false"', { |
| 26 'action': [ |
| 27 'python', '../copy-file.py', '<(RULE_INPUT_PATH)', '<@(_outputs)
', |
| 28 ], |
| 29 'process_outputs_as_sources': 1, |
| 30 'message': 'test_rule', |
| 31 }], |
| 32 ], |
| 33 }, |
| 34 ], |
| 35 }, |
| 36 ], |
| 37 } |
OLD | NEW |