Home | History | Annotate | Download | only in src
      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.
      4 
      5 {
      6   'targets': [
      7     {
      8       'target_name': 'pull_in_all_actions',
      9       'type': 'none',
     10       'dependencies': [
     11         'subdir1/executable.gyp:*',
     12         'subdir2/none.gyp:*',
     13         'subdir3/null_input.gyp:*',
     14       ],
     15     },
     16     {
     17       'target_name': 'depend_on_always_run_action',
     18       'type': 'none',
     19       'dependencies': [ 'subdir1/executable.gyp:counter' ],
     20       'actions': [
     21         {
     22           'action_name': 'use_always_run_output',
     23           'inputs': [
     24             'subdir1/actions-out/action-counter.txt',
     25             'subdir1/counter.py',
     26           ],
     27           'outputs': [
     28             'subdir1/actions-out/action-counter_2.txt',
     29           ],
     30           'action': [
     31             'python', 'subdir1/counter.py', '<(_outputs)',
     32           ],
     33           # Allows the test to run without hermetic cygwin on windows.
     34           'msvs_cygwin_shell': 0,
     35         },
     36       ],
     37     },
     38 
     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.
     42     {
     43       'target_name': 'dep_1',
     44       'type': 'none',
     45       'actions': [{
     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,
     53       }],
     54     },
     55     {
     56       'target_name': 'dep_2',
     57       'type': 'none',
     58       'actions': [{
     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,
     66       }],
     67     },
     68     {
     69       'target_name': 'dep_3',
     70       'type': 'none',
     71       'actions': [{
     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,
     79       }],
     80     },
     81 
     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.
     85     {
     86       'target_name': 'action_with_dependencies_123',
     87       'type': 'none',
     88       'dependencies': [ 'dep_1', 'dep_2', 'dep_3' ],
     89       'actions': [{
     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,
     96       }],
     97     },
     98     # Same as above but with deps in reverse.
     99     {
    100       'target_name': 'action_with_dependencies_321',
    101       'type': 'none',
    102       'dependencies': [ 'dep_3', 'dep_2', 'dep_1' ],
    103       'actions': [{
    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,
    110       }],
    111     },
    112 
    113   ],
    114 }
    115