summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/win/command-quote/command-quote.gyp
blob: faf724674fc8a5efb103d53c0b4af1a686b9b36c (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 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.

{
  'target_defaults': {
    'msvs_cygwin_dirs': ['../../../../../<(DEPTH)/third_party/cygwin'],
  },
  'targets': [
    {
      'target_name': 'test_batch',
      'type': 'none',
      'rules': [
      {
        'rule_name': 'build_with_batch',
        'msvs_cygwin_shell': 0,
        'extension': 'S',
        'outputs': ['output.obj'],
        'action': ['call go.bat', '<(RULE_INPUT_PATH)', 'output.obj'],
      },],
      'sources': ['a.S'],
    },
    {
      'target_name': 'test_call_separate',
      'type': 'none',
      'rules': [
      {
        'rule_name': 'build_with_batch2',
        'msvs_cygwin_shell': 0,
        'extension': 'S',
        'outputs': ['output2.obj'],
        'action': ['call', 'go.bat', '<(RULE_INPUT_PATH)', 'output2.obj'],
      },],
      'sources': ['a.S'],
    },
    {
      'target_name': 'test_with_spaces',
      'type': 'none',
      'rules': [
      {
        'rule_name': 'build_with_batch3',
        'msvs_cygwin_shell': 0,
        'extension': 'S',
        'outputs': ['output3.obj'],
        'action': ['bat with spaces.bat', '<(RULE_INPUT_PATH)', 'output3.obj'],
      },],
      'sources': ['a.S'],
    },
    {
      'target_name': 'test_with_double_quotes',
      'type': 'none',
      'rules': [
      {
        'rule_name': 'build_with_batch3',
        'msvs_cygwin_shell': 1,
        'extension': 'S',
        'outputs': ['output4.obj'],
        'arguments': ['-v'],
        'action': ['python', '-c', 'import shutil; '
          'shutil.copy("<(RULE_INPUT_PATH)", "output4.obj")'],
      },],
      'sources': ['a.S'],
    },
    {
      'target_name': 'test_with_single_quotes',
      'type': 'none',
      'rules': [
      {
        'rule_name': 'build_with_batch3',
        'msvs_cygwin_shell': 1,
        'extension': 'S',
        'outputs': ['output5.obj'],
        'action': ['python', '-c', "import shutil; "
          "shutil.copy('<(RULE_INPUT_PATH)', 'output5.obj')"],
      },],
      'sources': ['a.S'],
    },
  ]
}