• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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    {
8      'target_name': 'test_ordering_exe',
9      'type': 'executable',
10      # These are so the names of the functions appear in the disassembly.
11      'msvs_settings': {
12        'VCCLCompilerTool': {
13          'DebugInformationFormat': '3',
14          'Optimization': '2',
15        },
16        'VCLinkerTool': {
17          'GenerateDebugInformation': 'true',
18          'LinkIncremental': '1',
19          'GenerateManifest': 'false',
20          # Minimize the disassembly to just our code.
21          'AdditionalOptions': [
22            '/NODEFAULTLIB',
23          ],
24        },
25      },
26      'sources': [
27        # Explicitly sorted the same way as the disassembly in the test .py.
28        'main-crt.c',
29        'z.cc',
30        'x.cc',
31        'y.cc',
32        'hello.cc',
33      ],
34    },
35
36    {
37      'target_name': 'test_ordering_subdirs',
38      'type': 'executable',
39      # These are so the names of the functions appear in the disassembly.
40      'msvs_settings': {
41        'VCCLCompilerTool': {
42          'DebugInformationFormat': '3',
43          'Optimization': '2',
44        },
45        'VCLinkerTool': {
46          'GenerateDebugInformation': 'true',
47          'LinkIncremental': '1',
48          'GenerateManifest': 'false',
49          # Minimize the disassembly to just our code.
50          'AdditionalOptions': [
51            '/NODEFAULTLIB',
52          ],
53        },
54      },
55      'sources': [
56        # Explicitly sorted the same way as the disassembly in the test .py.
57        'main-crt.c',
58        'hello.cc',
59        'b/y.cc',
60        'a/z.cc',
61      ],
62    },
63
64  ]
65}
66