initial import
[vuplus_webkit] / Source / ThirdParty / gyp / test / actions-multiple / src / actions.gyp
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   'variables': {
7     # Have a long string so that actions will exceed xp 512 character
8     # command limit on xp.
9     'long_string':
10         'abcdefghijklmnopqrstuvwxyz0123456789'
11         'abcdefghijklmnopqrstuvwxyz0123456789'
12         'abcdefghijklmnopqrstuvwxyz0123456789'
13         'abcdefghijklmnopqrstuvwxyz0123456789'
14         'abcdefghijklmnopqrstuvwxyz0123456789'
15         'abcdefghijklmnopqrstuvwxyz0123456789'
16         'abcdefghijklmnopqrstuvwxyz0123456789'
17         'abcdefghijklmnopqrstuvwxyz0123456789'
18         'abcdefghijklmnopqrstuvwxyz0123456789'
19         'abcdefghijklmnopqrstuvwxyz0123456789'
20         'abcdefghijklmnopqrstuvwxyz0123456789'
21   },
22   'targets': [
23     {
24       'target_name': 'multiple_action_target',
25       'type': 'none',
26       'actions': [
27         {
28           'action_name': 'action1',
29           'inputs': [
30             'copy.py',
31             'input.txt',
32           ],
33           'outputs': [
34             'output1.txt',
35           ],
36           'action': [
37             'python', '<@(_inputs)', '<(_outputs)', '<(long_string)',
38           ],
39           # Allows the test to run without hermetic cygwin on windows.
40           'msvs_cygwin_shell': 0,
41         },
42         {
43           'action_name': 'action2',
44           'inputs': [
45             'copy.py',
46             'input.txt',
47           ],
48           'outputs': [
49             'output2.txt',
50           ],
51           'action': [
52             'python', '<@(_inputs)', '<(_outputs)', '<(long_string)',
53           ],
54           # Allows the test to run without hermetic cygwin on windows.
55           'msvs_cygwin_shell': 0,
56         },
57         {
58           'action_name': 'action3',
59           'inputs': [
60             'copy.py',
61             'input.txt',
62           ],
63           'outputs': [
64             'output3.txt',
65           ],
66           'action': [
67             'python', '<@(_inputs)', '<(_outputs)', '<(long_string)',
68           ],
69           # Allows the test to run without hermetic cygwin on windows.
70           'msvs_cygwin_shell': 0,
71         },
72         {
73           'action_name': 'action4',
74           'inputs': [
75             'copy.py',
76             'input.txt',
77           ],
78           'outputs': [
79             'output4.txt',
80           ],
81           'action': [
82             'python', '<@(_inputs)', '<(_outputs)', '<(long_string)',
83           ],
84           # Allows the test to run without hermetic cygwin on windows.
85           'msvs_cygwin_shell': 0,
86         },
87       ],
88     },
89     {
90       'target_name': 'multiple_action_source_filter',
91       'type': 'executable',
92       'sources': [
93         'main.c',
94         # TODO(bradnelson): add foo.c here once this issue is fixed:
95         #     http://code.google.com/p/gyp/issues/detail?id=175
96       ],
97       'actions': [
98         {
99           'action_name': 'action1',
100           'inputs': [
101             'foo.c',
102             'filter.py',
103           ],
104           'outputs': [
105             'output1.c',
106           ],
107           'process_outputs_as_sources': 1,
108           'action': [
109             'python', 'filter.py', 'foo', 'bar', 'foo.c', '<(_outputs)',
110           ],
111           # Allows the test to run without hermetic cygwin on windows.
112           'msvs_cygwin_shell': 0,
113         },
114         {
115           'action_name': 'action2',
116           'inputs': [
117             'foo.c',
118             'filter.py',
119           ],
120           'outputs': [
121             'output2.c',
122           ],
123           'process_outputs_as_sources': 1,
124           'action': [
125             'python', 'filter.py', 'foo', 'car', 'foo.c', '<(_outputs)',
126           ],
127           # Allows the test to run without hermetic cygwin on windows.
128           'msvs_cygwin_shell': 0,
129         },
130         {
131           'action_name': 'action3',
132           'inputs': [
133             'foo.c',
134             'filter.py',
135           ],
136           'outputs': [
137             'output3.c',
138           ],
139           'process_outputs_as_sources': 1,
140           'action': [
141             'python', 'filter.py', 'foo', 'dar', 'foo.c', '<(_outputs)',
142           ],
143           # Allows the test to run without hermetic cygwin on windows.
144           'msvs_cygwin_shell': 0,
145         },
146         {
147           'action_name': 'action4',
148           'inputs': [
149             'foo.c',
150             'filter.py',
151           ],
152           'outputs': [
153             'output4.c',
154           ],
155           'process_outputs_as_sources': 1,
156           'action': [
157             'python', 'filter.py', 'foo', 'ear', 'foo.c', '<(_outputs)',
158           ],
159           # Allows the test to run without hermetic cygwin on windows.
160           'msvs_cygwin_shell': 0,
161         },
162       ],
163     },
164   ],
165 }