summaryrefslogtreecommitdiff
path: root/deps/gyp/test/rules/src/input-root.gyp
blob: b6600e767c8ead8db822da0561f1ef5f5bd53fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'test',
      'type': 'executable',
      'sources': [ 'somefile.ext', ],
      'rules': [{
        'rule_name': 'rule',
        'extension': 'ext',
        'inputs': [ 'rule.py', ],
        'outputs': [ '<(RULE_INPUT_ROOT).cc', ],
        'action': [ 'python', 'rule.py', '<(RULE_INPUT_ROOT)', ],
        'message': 'Processing <(RULE_INPUT_PATH)',
        'process_outputs_as_sources': 1,
        # Allows the test to run without hermetic cygwin on windows.
        'msvs_cygwin_shell': 0,
      }],
    },
  ],
}