summaryrefslogtreecommitdiffstats
path: root/chrome/tools/crash_service/caps/caps.gyp
blob: 9379c520d018b6745d66ca370ee91bc798411e0c (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
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'variables': {
    'chromium_code': 1,
  },
  'includes': [
    '../../../../build/util/version.gypi',
    '../../../../build/win_precompile.gypi',
  ],
  'targets': [
    {
      'target_name': 'caps_resources',
      'type': 'none',
      'variables': {
        'branding_path': '../../../app/theme/<(branding_path_component)/BRANDING',
        'output_dir': 'caps',
        'template_input_path': '../../../app/chrome_version.rc.version',
      },
      'sources': [
        'caps.ver',
      ],
      'includes': [
        '../../../version_resource_rules.gypi',
      ],
    },
    {
      'target_name': 'caps',
      'type': 'executable',
      'include_dirs': [
        '..',
      ],
      'sources': [
        '<(SHARED_INTERMEDIATE_DIR)/caps/caps_version.rc',
        'exit_codes.h',
        'logger_win.cc',
        'logger_win.h',
        'main_win.cc',
        'process_singleton_win.cc',
        'process_singleton_win.h',
      ],
      'dependencies': [
        'caps_resources',
        '../../../../base/base.gyp:base',
        '../../../../chrome/chrome.gyp:common_version',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          # Set /SUBSYSTEM:WINDOWS.
          'SubSystem': '2',
        },
      },
    },
  ],
}