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 that the case where an action is only specified under a conditional is |
| 6 # evaluated appropriately. |
| 7 { |
| 8 'targets': [ |
| 9 { |
| 10 'target_name': 'extension_does_not_match_sources_and_no_action', |
| 11 'type': 'none', |
| 12 'msvs_cygwin_shell': 0, |
| 13 'sources': [ |
| 14 'file1.in', |
| 15 'file2.in', |
| 16 ], |
| 17 'rules': [ |
| 18 { |
| 19 'rule_name': 'assemble', |
| 20 'extension': 'asm', |
| 21 'outputs': [ |
| 22 '<(RULE_INPUT_ROOT).fail', |
| 23 ], |
| 24 'conditions': [ |
| 25 # Always fails. |
| 26 [ '"true"=="false"', { |
| 27 'action': [ |
| 28 'python', '../copy-file.py', '<(RULE_INPUT_PATH)', '<@(_outputs)
', |
| 29 ], |
| 30 'process_outputs_as_sources': 1, |
| 31 'message': 'test_rule', |
| 32 }], |
| 33 ], |
| 34 }, |
| 35 ], |
| 36 }, |
| 37 ], |
| 38 } |
OLD | NEW |