summaryrefslogtreecommitdiffstats
path: root/breakpad/breakpad_sender.scons
blob: c97edb70ee6b7bdfcfd5ced3edb1e495f9bc16cd (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
# Copyright (c) 2006-2008 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.

Import('env')

env = env.Clone()

env.Prepend(
    CPPPATH = [
        'src',
        '$CHROME_SRC_DIR',
    ],
)

if env.Bit('windows'):
  env.Append(
      CCFLAGS = [
          '/TP',
          '/wd4800',
      ],
  )

input_files = ChromeFileList([
    'src/client/windows/sender/crash_report_sender.cc',
    'src/common/windows/http_upload.cc',
    'src/client/windows/sender/crash_report_sender.h',
    'src/common/windows/http_upload.h',
])

if env.Bit('windows'):
  env.ChromeLibrary('breakpad_sender', input_files)

p = env.ChromeMSVSProject('breakpad_sender.vcproj',
                          dest=('$CHROME_SRC_DIR/breakpad/' +
                                    'breakpad_sender.vcproj'),
                          guid='{9946A048-043B-4F8F-9E07-9297B204714C}',
                          keyword='Win32Proj',
                          # TODO(sgk):  when we can intuit the hierarchy
                          # from the built targets.
                          #buildtargets=TODO,
                          files=input_files,
                          tools=[
                              'VCLibrarianTool',
                              'VCCLCompilerTool',
                          ],
                          ConfigurationType='4')

p.AddConfig('Debug|Win32',
            InheritedPropertySheets=[
                '$(SolutionDir)../build/common.vsprops',
                '$(SolutionDir)../build/debug.vsprops',
                '$(SolutionDir)../build/external_code.vsprops',
                'using_breakpad.vsprops',
            ])

p.AddConfig('Release|Win32',
            InheritedPropertySheets=[
                '$(SolutionDir)../build/common.vsprops',
                '$(SolutionDir)../build/release.vsprops',
                '$(SolutionDir)../build/external_code.vsprops',
                'using_breakpad.vsprops',
            ])