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    # Have to turn on function level linking here to get the function packaged
8    # as a COMDAT so that it's eligible for optimizing away. Also turn on
9    # debug information so that the symbol names for the code appear in the
10    # dump (so we can verify if they are included in the final exe).
11    {
12      'target_name': 'test_optref_default',
13      'type': 'executable',
14      'msvs_settings': {
15        'VCCLCompilerTool': {
16          'EnableFunctionLevelLinking': 'true',
17          'DebugInformationFormat': '3',
18        },
19        'VCLinkerTool': {
20          'GenerateDebugInformation': 'true',
21        },
22      },
23      'sources': ['opt-ref.cc'],
24    },
25    {
26      'target_name': 'test_optref_no',
27      'type': 'executable',
28      'msvs_settings': {
29        'VCCLCompilerTool': {
30          'EnableFunctionLevelLinking': 'true',
31          'DebugInformationFormat': '3',
32        },
33        'VCLinkerTool': {
34          'GenerateDebugInformation': 'true',
35          'OptimizeReferences': '1',
36        },
37      },
38      'sources': ['opt-ref.cc'],
39    },
40    {
41      'target_name': 'test_optref_yes',
42      'type': 'executable',
43      'msvs_settings': {
44        'VCCLCompilerTool': {
45          'EnableFunctionLevelLinking': 'true',
46          'DebugInformationFormat': '3',
47        },
48        'VCLinkerTool': {
49          'GenerateDebugInformation': 'true',
50          'OptimizeReferences': '2',
51        },
52      },
53      'sources': ['opt-ref.cc'],
54    },
55  ]
56}
57