1
# Copyright (c) 2009 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.
8
'target_name': 'pull_in_all_actions',
11
'subdir1/executable.gyp:*',
13
'subdir3/null_input.gyp:*',
17
'target_name': 'depend_on_always_run_action',
19
'dependencies': [ 'subdir1/executable.gyp:counter' ],
22
'action_name': 'use_always_run_output',
24
'subdir1/actions-out/action-counter.txt',
28
'subdir1/actions-out/action-counter_2.txt',
31
'python', 'subdir1/counter.py', '<(_outputs)',
33
# Allows the test to run without hermetic cygwin on windows.
34
'msvs_cygwin_shell': 0,
39
# Three deps which don't finish immediately.
40
# Each one has a small delay then creates a file.
41
# Delays are 1.0, 1.1, and 2.0 seconds.
43
'target_name': 'dep_1',
46
'inputs': [ 'actions.gyp' ],
47
'outputs': [ 'dep_1.txt' ],
48
'action_name': 'dep_1',
49
'action': [ 'python', '-c',
50
'import time; time.sleep(1); open(\'dep_1.txt\', \'w\')' ],
51
# Allows the test to run without hermetic cygwin on windows.
52
'msvs_cygwin_shell': 0,
56
'target_name': 'dep_2',
59
'inputs': [ 'actions.gyp' ],
60
'outputs': [ 'dep_2.txt' ],
61
'action_name': 'dep_2',
62
'action': [ 'python', '-c',
63
'import time; time.sleep(1.1); open(\'dep_2.txt\', \'w\')' ],
64
# Allows the test to run without hermetic cygwin on windows.
65
'msvs_cygwin_shell': 0,
69
'target_name': 'dep_3',
72
'inputs': [ 'actions.gyp' ],
73
'outputs': [ 'dep_3.txt' ],
74
'action_name': 'dep_3',
75
'action': [ 'python', '-c',
76
'import time; time.sleep(2.0); open(\'dep_3.txt\', \'w\')' ],
77
# Allows the test to run without hermetic cygwin on windows.
78
'msvs_cygwin_shell': 0,
82
# An action which assumes the deps have completed.
83
# Does NOT list the output files of it's deps as inputs.
84
# On success create the file deps_all_done_first.txt.
86
'target_name': 'action_with_dependencies_123',
88
'dependencies': [ 'dep_1', 'dep_2', 'dep_3' ],
90
'inputs': [ 'actions.gyp' ],
91
'outputs': [ 'deps_all_done_first_123.txt' ],
92
'action_name': 'action_with_dependencies_123',
93
'action': [ 'python', 'confirm-dep-files.py', '<(_outputs)' ],
94
# Allows the test to run without hermetic cygwin on windows.
95
'msvs_cygwin_shell': 0,
98
# Same as above but with deps in reverse.
100
'target_name': 'action_with_dependencies_321',
102
'dependencies': [ 'dep_3', 'dep_2', 'dep_1' ],
104
'inputs': [ 'actions.gyp' ],
105
'outputs': [ 'deps_all_done_first_321.txt' ],
106
'action_name': 'action_with_dependencies_321',
107
'action': [ 'python', 'confirm-dep-files.py', '<(_outputs)' ],
108
# Allows the test to run without hermetic cygwin on windows.
109
'msvs_cygwin_shell': 0,