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 ev aulated appropriately. | |
Nico
2012/05/15 17:21:57
80-col wrap comments
typo evaulated
Yaron
2012/05/15 17:36:13
Done.
| |
6 { | |
7 'targets': [ | |
8 { | |
9 'target_name': 'extension_does_not_match_sources_and_no_action', | |
10 'type': 'none', | |
11 'msvs_cygwin_shell': 0, | |
12 'sources': [ | |
13 'file1.in', | |
14 'file2.in', | |
15 ], | |
16 'rules': [ | |
17 { | |
18 'rule_name': 'assemble', | |
19 'extension': 'asm', | |
20 'outputs': [ | |
21 '<(RULE_INPUT_ROOT).fail', | |
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 }, | |
Nico
2012/05/15 17:21:57
Reading the make generator code, it looks like it
Yaron
2012/05/15 17:36:13
Done. Is there an "expect fails to gyp" option? I
Nico
2012/05/15 17:43:22
test.run_gyp('my-gyp-file.gyp', chdir='src', statu
| |
34 ], | |
35 }, | |
36 ], | |
37 } | |
OLD | NEW |