Restore the wcscmp suppression because it's used on the bots.
[chromium-blink-merge.git] / components / breakpad.gypi
blobb125713db405ee9f9a153ebeecccd7a0a8be04f2
1 # Copyright 2013 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_component_target': 0,
9     },
10     'target_conditions': [
11       ['breakpad_component_target==1', {
12         'defines': ['BREAKPAD_IMPLEMENTATION'],
13         'sources': [
14           'breakpad/app/breakpad_client.cc',
15           'breakpad/app/breakpad_client.h',
16           'breakpad/app/breakpad_linux.cc',
17           'breakpad/app/breakpad_linux.h',
18           'breakpad/app/breakpad_linux_impl.h',
19           'breakpad/app/breakpad_mac.h',
20           'breakpad/app/breakpad_mac.mm',
21           'breakpad/app/breakpad_win.cc',
22           'breakpad/app/breakpad_win.h',
23           'breakpad/app/hard_error_handler_win.cc',
24           'breakpad/app/hard_error_handler_win.h',
25         ],
26       }],
27     ],
28   },
29   'targets': [
30     {
31       # Note: if you depend on this target, you need to either link in
32       # content.gyp:content_common, or add
33       # content/public/common/content_switches.cc to your sources.
34       'target_name': 'breakpad_component',
35       'type': 'static_library',
36       'variables': {
37         'breakpad_component_target': 1,
38       },
39       'dependencies': [
40         '../base/base.gyp:base',
41       ],
42       'conditions': [
43         ['OS=="mac"', {
44           'dependencies': [
45             '../breakpad/breakpad.gyp:breakpad',
46           ],
47         }],
48         ['OS=="win"', {
49           'dependencies': [
50             '../breakpad/breakpad.gyp:breakpad_handler',
51             '../breakpad/breakpad.gyp:breakpad_sender',
52             '../sandbox/sandbox.gyp:sandbox',
53           ],
54         }],
55         ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_build != 1', {
56           'dependencies': [
57             '../breakpad/breakpad.gyp:breakpad_client',
58           ],
59           'include_dirs': [
60             '../breakpad/src',
61           ],
62         }],
63       ],
64       'target_conditions': [
65         # Need 'target_conditions' to override default filename_rules to include
66         # the files on Android.
67         ['OS=="android"', {
68           'sources/': [
69             ['include', '^breakpad/app/breakpad_linux\\.cc$'],
70           ],
71         }],
72       ],
73     },
74   ],
75   'conditions': [
76     ['OS=="win"', {
77       'targets': [
78         {
79           'target_name': 'breakpad_crash_service',
80           'type': 'static_library',
81           'dependencies': [
82             '../base/base.gyp:base',
83             '../breakpad/breakpad.gyp:breakpad_handler',
84             '../breakpad/breakpad.gyp:breakpad_sender',
85           ],
86           'sources': [
87             'breakpad/tools/crash_service.cc',
88             'breakpad/tools/crash_service.h',
89           ],
90         },
91       ],
92     }],
93     ['OS=="win" and target_arch=="ia32"', {
94       'targets': [
95         {
96           # Note: if you depend on this target, you need to either link in
97           # content.gyp:content_common, or add
98           # content/public/common/content_switches.cc to your sources.
99           'target_name': 'breakpad_win64',
100           'type': 'static_library',
101           'variables': {
102             'breakpad_component_target': 1,
103           },
104           'dependencies': [
105             '../base/base.gyp:base_nacl_win64',
106             '../breakpad/breakpad.gyp:breakpad_handler_win64',
107             '../breakpad/breakpad.gyp:breakpad_sender_win64',
108             '../sandbox/sandbox.gyp:sandbox_win64',
109           ],
110           'configurations': {
111             'Common_Base': {
112               'msvs_target_platform': 'x64',
113             },
114           },
115         },
116         {
117           'target_name': 'breakpad_crash_service_win64',
118           'type': 'static_library',
119           'dependencies': [
120             '../base/base.gyp:base_nacl_win64',
121             '../breakpad/breakpad.gyp:breakpad_handler_win64',
122             '../breakpad/breakpad.gyp:breakpad_sender_win64',
123           ],
124           'sources': [
125             'breakpad/tools/crash_service.cc',
126             'breakpad/tools/crash_service.h',
127           ],
128           'configurations': {
129             'Common_Base': {
130               'msvs_target_platform': 'x64',
131             },
132           },
133         },
134       ],
135     }],
136     ['OS=="mac"', {
137       'targets': [
138         {
139           'target_name': 'breakpad_stubs',
140           'type': 'static_library',
141           'dependencies': [
142             '../base/base.gyp:base',
143           ],
144           'sources': [
145             'breakpad/app/breakpad_client.cc',
146             'breakpad/app/breakpad_client.h',
147             'breakpad/app/breakpad_mac.h',
148             'breakpad/app/breakpad_mac_stubs.mm',
149           ],
150         },
151       ],
152     }],
153     ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_build != 1', {
154       'targets': [
155         {
156           'target_name': 'breakpad_host',
157           'type': 'static_library',
158           'dependencies': [
159             'breakpad_component',
160             '../base/base.gyp:base',
161             '../breakpad/breakpad.gyp:breakpad_client',
162             '../content/content.gyp:content_browser',
163             '../content/content.gyp:content_common',
164           ],
165           'sources': [
166             'breakpad/browser/crash_dump_manager_android.cc',
167             'breakpad/browser/crash_dump_manager_android.h',
168             'breakpad/browser/crash_handler_host_linux.cc',
169             'breakpad/browser/crash_handler_host_linux.h',
170           ],
171           'include_dirs': [
172             '../breakpad/src',
173           ],
174           'target_conditions': [
175             # Need 'target_conditions' to override default filename_rules to include
176             # the files on Android.
177             ['OS=="android"', {
178               'sources/': [
179                 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'],
180               ],
181             }],
182           ],
183         },
184       ],
185     }],
186   ],