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 'targets': [
7    # Level 1
8    {
9      'target_name': 'test_wl1_fail',
10      'type': 'executable',
11      'msvs_settings': {
12        'VCCLCompilerTool': {
13          'WarningLevel': '1',
14          'WarnAsError': 'true',
15        }
16      },
17      'sources': ['warning-level1.cc'],
18    },
19    {
20      'target_name': 'test_wl1_pass',
21      'type': 'executable',
22      'msvs_settings': {
23        'VCCLCompilerTool': {
24          'WarningLevel': '1',
25          'WarnAsError': 'true',
26        }
27      },
28      'sources': ['warning-level2.cc'],
29    },
30
31    # Level 2
32    {
33      'target_name': 'test_wl2_fail',
34      'type': 'executable',
35      'msvs_settings': {
36        'VCCLCompilerTool': {
37          'WarningLevel': '2',
38          'WarnAsError': 'true',
39        }
40      },
41      'sources': ['warning-level2.cc'],
42    },
43    {
44      'target_name': 'test_wl2_pass',
45      'type': 'executable',
46      'msvs_settings': {
47        'VCCLCompilerTool': {
48          'WarningLevel': '2',
49          'WarnAsError': 'true',
50        }
51      },
52      'sources': ['warning-level3.cc'],
53    },
54
55    # Level 3
56    {
57      'target_name': 'test_wl3_fail',
58      'type': 'executable',
59      'msvs_settings': {
60        'VCCLCompilerTool': {
61          'WarningLevel': '3',
62          'WarnAsError': 'true',
63        }
64      },
65      'sources': ['warning-level3.cc'],
66    },
67    {
68      'target_name': 'test_wl3_pass',
69      'type': 'executable',
70      'msvs_settings': {
71        'VCCLCompilerTool': {
72          'WarningLevel': '3',
73          'WarnAsError': 'true',
74        }
75      },
76      'sources': ['warning-level4.cc'],
77    },
78
79
80    # Level 4
81    {
82      'target_name': 'test_wl4_fail',
83      'type': 'executable',
84      'msvs_settings': {
85        'VCCLCompilerTool': {
86          'WarningLevel': '4',
87          'WarnAsError': 'true',
88        }
89      },
90      'sources': ['warning-level4.cc'],
91    },
92
93    # Default level
94    {
95      'target_name': 'test_def_fail',
96      'type': 'executable',
97      'msvs_settings': {
98        'VCCLCompilerTool': {
99          'WarnAsError': 'true',
100        }
101      },
102      'sources': ['warning-level1.cc'],
103    },
104    {
105      'target_name': 'test_def_pass',
106      'type': 'executable',
107      'msvs_settings': {
108        'VCCLCompilerTool': {
109        }
110      },
111      'sources': ['warning-level2.cc'],
112    },
113
114  ]
115}
116