Home | History | Annotate | Download | only in command-quote
      1 # Copyright (c) 2012 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   'target_defaults': {
      7     'msvs_cygwin_dirs': ['../../../../../<(DEPTH)/third_party/cygwin'],
      8   },
      9   'targets': [
     10     {
     11       'target_name': 'test_batch',
     12       'type': 'none',
     13       'rules': [
     14       {
     15         'rule_name': 'build_with_batch',
     16         'msvs_cygwin_shell': 0,
     17         'extension': 'S',
     18         'outputs': ['output.obj'],
     19         'action': ['call go.bat', '<(RULE_INPUT_PATH)', 'output.obj'],
     20       },],
     21       'sources': ['a.S'],
     22     },
     23     {
     24       'target_name': 'test_call_separate',
     25       'type': 'none',
     26       'rules': [
     27       {
     28         'rule_name': 'build_with_batch2',
     29         'msvs_cygwin_shell': 0,
     30         'extension': 'S',
     31         'outputs': ['output2.obj'],
     32         'action': ['call', 'go.bat', '<(RULE_INPUT_PATH)', 'output2.obj'],
     33       },],
     34       'sources': ['a.S'],
     35     },
     36     {
     37       'target_name': 'test_with_spaces',
     38       'type': 'none',
     39       'rules': [
     40       {
     41         'rule_name': 'build_with_batch3',
     42         'msvs_cygwin_shell': 0,
     43         'extension': 'S',
     44         'outputs': ['output3.obj'],
     45         'action': ['bat with spaces.bat', '<(RULE_INPUT_PATH)', 'output3.obj'],
     46       },],
     47       'sources': ['a.S'],
     48     },
     49     {
     50       'target_name': 'test_with_double_quotes',
     51       'type': 'none',
     52       'rules': [
     53       {
     54         'rule_name': 'build_with_batch3',
     55         'msvs_cygwin_shell': 1,
     56         'extension': 'S',
     57         'outputs': ['output4.obj'],
     58         'arguments': ['-v'],
     59         'action': ['python', '-c', 'import shutil; '
     60           'shutil.copy("<(RULE_INPUT_PATH)", "output4.obj")'],
     61       },],
     62       'sources': ['a.S'],
     63     },
     64     {
     65       'target_name': 'test_with_single_quotes',
     66       'type': 'none',
     67       'rules': [
     68       {
     69         'rule_name': 'build_with_batch3',
     70         'msvs_cygwin_shell': 1,
     71         'extension': 'S',
     72         'outputs': ['output5.obj'],
     73         'action': ['python', '-c', "import shutil; "
     74           "shutil.copy('<(RULE_INPUT_PATH)', 'output5.obj')"],
     75       },],
     76       'sources': ['a.S'],
     77     },
     78   ]
     79 }
     80