Use PPB_Console interface to send logs from the client plugin
[chromium-blink-merge.git] / breakpad / breakpad_handler.gypi
blob657e819a85229afad268839dc3ad5725778702ed
1 # Copyright (c) 2009 The Chromium Authors. 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.
6   'target_defaults': {
7     'variables': {
8       'breakpad_handler_target': 0,
9     },
10     'target_conditions': [
11       ['breakpad_handler_target==1', {
12         'sources': [
13           'src/client/windows/crash_generation/client_info.cc',
14           'src/client/windows/crash_generation/client_info.h',
15           'src/client/windows/crash_generation/crash_generation_client.cc',
16           'src/client/windows/crash_generation/crash_generation_client.h',
17           'src/client/windows/crash_generation/crash_generation_server.cc',
18           'src/client/windows/crash_generation/crash_generation_server.h',
19           'src/client/windows/handler/exception_handler.cc',
20           'src/client/windows/handler/exception_handler.h',
21           'src/common/windows/guid_string.cc',
22           'src/common/windows/guid_string.h',
23           'src/google_breakpad/common/minidump_format.h',
24           'src/client/windows/crash_generation/minidump_generator.cc',
25           'src/client/windows/crash_generation/minidump_generator.h',
26           'src/common/windows/string_utils-inl.h',
27         ],
28         'include_dirs': [
29           'src',
30         ],
31         'defines': [
32           # Avoid the TerminateThread Application Verifier Failure.
33           'BREAKPAD_NO_TERMINATE_THREAD',
34         ],
35       }],
36     ],
37   },
38   'conditions': [
39     ['OS=="win"', {
40       'targets': [
41         {
42           # GN version: //breakpad:breakpad_handler
43           'target_name': 'breakpad_handler',
44           'type': 'static_library',
45           'variables': {
46             'breakpad_handler_target': 1,
47             'clang_warning_flags': [
48               # See
49               # https://code.google.com/p/google-breakpad/issues/detail?id=658.
50               '-Wno-reorder',
51             ],
52           },
53           # TODO(gregoryd): direct_dependent_settings should be shared with the
54           # 64-bit target, but it doesn't work due to a bug in gyp
55           'direct_dependent_settings': {
56             'include_dirs': [
57               'src',
58             ],
59           },
60         },
61       ],
62     }],
63     ['OS=="win" and target_arch=="ia32"', {
64       'targets': [
65         {
66           'target_name': 'breakpad_handler_win64',
67           'type': 'static_library',
68           'variables': {
69             'breakpad_handler_target': 1,
70           },
71           # TODO(gregoryd): direct_dependent_settings should be shared with the
72           # 32-bit target, but it doesn't work due to a bug in gyp
73           'direct_dependent_settings': {
74             'include_dirs': [
75               'src',
76             ],
77           },
78           'configurations': {
79             'Common_Base': {
80               'msvs_target_platform': 'x64',
81             },
82           },
83         },
84       ],
85     }],
86   ],