summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/win/large-pdb/large-pdb.gyp
blob: 2a241a562331842c360e50eb1490f70eeef66476 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright (c) 2013 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.

{
 'targets': [
    {
      'target_name': 'large_pdb_exe',
      'type': 'executable',
      'msvs_large_pdb': 1,
      'sources': [
        'main.cc',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'ProgramDatabaseFile': '<(PRODUCT_DIR)/large_pdb_exe.exe.pdb',
        },
      },
    },
    {
      'target_name': 'small_pdb_exe',
      'type': 'executable',
      'msvs_large_pdb': 0,
      'sources': [
        'main.cc',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'ProgramDatabaseFile': '<(PRODUCT_DIR)/small_pdb_exe.exe.pdb',
        },
      },
    },
    {
      'target_name': 'large_pdb_dll',
      'type': 'shared_library',
      'msvs_large_pdb': 1,
      'sources': [
        'dllmain.cc',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'ProgramDatabaseFile': '<(PRODUCT_DIR)/large_pdb_dll.dll.pdb',
        },
      },
    },
    {
      'target_name': 'small_pdb_dll',
      'type': 'shared_library',
      'msvs_large_pdb': 0,
      'sources': [
        'dllmain.cc',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'ProgramDatabaseFile': '<(PRODUCT_DIR)/small_pdb_dll.dll.pdb',
        },
      },
    },
    {
      'target_name': 'large_pdb_implicit_exe',
      'type': 'executable',
      'msvs_large_pdb': 1,
      'sources': [
        'main.cc',
      ],
      # No PDB file is specified. However, the msvs_large_pdb mechanism should
      # default to the appropriate <(PRODUCT_DIR)/<(TARGET_NAME).exe.pdb.
    },
    {
      'target_name': 'large_pdb_variable_exe',
      'type': 'executable',
      'msvs_large_pdb': 1,
      'sources': [
        'main.cc',
      ],
      # No PDB file is specified. However, the msvs_large_pdb_path variable
      # explicitly sets one.
      'variables': {
        'msvs_large_pdb_path': '<(PRODUCT_DIR)/foo.pdb',
      },
    },
    {
      'target_name': 'large_pdb_product_exe',
      'product_name': 'bar',
      'type': 'executable',
      'msvs_large_pdb': 1,
      'sources': [
        'main.cc',
      ],
      # No PDB file is specified. However, we've specified a product name so
      # it should use <(PRODUCT_DIR)/bar.exe.pdb.
    },
  ]
}