Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Side by Side Diff: test/chained-rules/chained-rules.gyp

Issue 10381103: ninja: rules chained only by output of first one failing Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: only update sources if process_outputs_as_sources Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. 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': 'chained_rules',
9 'type': 'none',
10 'sources': [
11 'input.wxs',
12 ],
13 'outputs': [
14 '<(PRODUCT_DIR)/input.msi',
15 ],
16 'rules': [
17 {
18 'rule_name': 'candle',
19 'extension': 'wxs',
20 'outputs': [
21 '<(INTERMEDIATE_DIR)/input.wixobj',
22 ],
23 'process_outputs_as_sources': 1,
24 'msvs_cygwin_shell': 0,
25 'action': [
26 'python', 'copyfile.py',
27 '<(RULE_INPUT_PATH)',
28 '<@(_outputs)'
29 ],
30 'message': 'Generating <@(_outputs)',
31 },
32 {
33 'rule_name': 'light',
34 'extension': 'wixobj',
35 'outputs': [
36 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi',
37 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).wixpdb',
38 ],
39 'msvs_cygwin_shell': 0,
40 'action': [
41 'python', 'copyfile.py',
42 '<(RULE_INPUT_PATH)',
43 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi'
44 ],
45 'message': 'Generating <(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi',
46 },
47 ],
48 },
49 {
50 'target_name': 'chain_action_to_rule',
51 'type': 'none',
52 'sources': [
53 'input.wxs',
54 ],
55 'outputs': [
56 '<(PRODUCT_DIR)/out.final',
57 ],
58 'actions': [
59 {
60 'msvs_cygwin_shell': 0,
61 'action_name': 'copy_action',
62 'inputs': [
63 'action.input',
64 ],
65 'outputs': [
66 'action.output',
67 ],
68 'action': [
69 'python', 'copyfile.py',
70 'action.input',
71 '<(_outputs)',
72 ],
73 'process_outputs_as_sources': 1,
74 },
75 ],
76 'rules': [
77 {
78 'rule_name': 'output_to_final',
79 'extension': 'output',
80 'outputs': [
81 '<(PRODUCT_DIR)/out.final',
82 ],
83 'msvs_cygwin_shell': 0,
84 'action': [
85 'python', 'copyfile.py',
86 '<(RULE_INPUT_PATH)',
87 '<@(_outputs)'
88 ],
89 'message': 'Generating <@(_outputs)',
90 },
91 ],
92 },
93 ]
94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698