summaryrefslogtreecommitdiff
path: root/deps/gyp/test/actions-none/src/none_with_source_files.gyp
blob: e2aaebc10a6d5e1ee29861d00ee437bb12692c02 (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
25
26
27
28
29
30
31
32
33
34
35
# Copyright (c) 2012 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.

# Test that 'none' type targets can have .cc files in them.

{
  'targets': [
    {
      'target_name': 'none_with_sources',
      'type': 'none',
      'msvs_cygwin_shell': 0,
      'sources': [
        'foo.cc',
      ],
      'actions': [
        {
          'action_name': 'fake_cross',
          'inputs': [
            'fake_cross.py',
            '<@(_sources)',
          ],
          'outputs': [
            '<(PRODUCT_DIR)/fake.out',
          ],
          'action': [
            'python', '<@(_inputs)', '<@(_outputs)',
          ],
          # Allows the test to run without hermetic cygwin on windows.
          'msvs_cygwin_shell': 0,
        }
      ],
    },
  ],
}