Home | History | Annotate | Download | only in subdir1
      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': 'program',
      9       'type': 'executable',
     10       'msvs_cygwin_shell': 0,
     11       'sources': [
     12         'program.c',
     13       ],
     14       'actions': [
     15         {
     16           'action_name': 'make-prog1',
     17           'inputs': [
     18             'make-prog1.py',
     19           ],
     20           'outputs': [
     21             '<(INTERMEDIATE_DIR)/prog1.c',
     22           ],
     23           'action': [
     24             'python', '<(_inputs)', '<@(_outputs)',
     25           ],
     26           'process_outputs_as_sources': 1,
     27         },
     28         {
     29           'action_name': 'make-prog2',
     30           'inputs': [
     31             'make-prog2.py',
     32           ],
     33           'outputs': [
     34             'actions-out/prog2.c',
     35           ],
     36           'action': [
     37             'python', '<(_inputs)', '<@(_outputs)',
     38           ],
     39           'process_outputs_as_sources': 1,
     40           # Allows the test to run without hermetic cygwin on windows.
     41           'msvs_cygwin_shell': 0,
     42         },
     43       ],
     44     },
     45     {
     46       'target_name': 'counter',
     47       'type': 'none',
     48       'actions': [
     49         {
     50           # This action should always run, regardless of whether or not it's
     51           # inputs or the command-line change. We do this by creating a dummy
     52           # first output, which is always missing, thus causing the build to
     53           # always try to recreate it. Actual output files should be listed
     54           # after the dummy one, and dependent targets should list the real
     55           # output(s) in their inputs
     56           # (see '../actions.gyp:depend_on_always_run_action').
     57           'action_name': 'action_counter',
     58           'inputs': [
     59             'counter.py',
     60           ],
     61           'outputs': [
     62             'actions-out/action-counter.txt.always',
     63             'actions-out/action-counter.txt',
     64           ],
     65           'action': [
     66             'python', '<(_inputs)', 'actions-out/action-counter.txt', '2',
     67           ],
     68           # Allows the test to run without hermetic cygwin on windows.
     69           'msvs_cygwin_shell': 0,
     70         },
     71       ],
     72     },
     73   ],
     74 }
     75