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.
8 'target_name': 'breakpad_component_lib',
9 'type': 'static_library',
11 'breakpad/app/breakpad_client.cc',
12 'breakpad/app/breakpad_client.h',
13 'breakpad/app/crash_keys_win.cc',
14 'breakpad/app/crash_keys_win.h',
25 # On IOS there are no files compiled into the library, and we
26 # can't have libraries with zero objects.
27 'breakpad_component_target_type%': 'none',
29 'breakpad_component_target_type%': 'static_library',
33 # Note: if you depend on this target, you need to either link in
34 # content.gyp:content_common, or add
35 # content/public/common/content_switches.cc to your sources.
37 # GN version: //components/breakpad/app
38 'target_name': 'breakpad_component',
39 'type': '<(breakpad_component_target_type)',
41 'breakpad/app/breakpad_linux.cc',
42 'breakpad/app/breakpad_linux.h',
43 'breakpad/app/breakpad_linux_impl.h',
44 'breakpad/app/breakpad_mac.h',
45 'breakpad/app/breakpad_mac.mm',
46 'breakpad/app/breakpad_win.cc',
47 'breakpad/app/breakpad_win.h',
48 'breakpad/app/hard_error_handler_win.cc',
49 'breakpad/app/hard_error_handler_win.h',
52 'breakpad_component_lib',
53 '../base/base.gyp:base',
55 'defines': ['BREAKPAD_IMPLEMENTATION'],
59 '../breakpad/breakpad.gyp:breakpad',
64 '../breakpad/breakpad.gyp:breakpad_handler',
65 '../breakpad/breakpad.gyp:breakpad_sender',
66 '../sandbox/sandbox.gyp:sandbox',
69 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_build != 1', {
71 '../breakpad/breakpad.gyp:breakpad_client',
78 'target_conditions': [
79 # Need 'target_conditions' to override default filename_rules to include
80 # the files on Android.
83 ['include', '^breakpad/app/breakpad_linux\\.cc$'],
89 # GN version: //components/breakpad/app:test_support
90 'target_name': 'breakpad_test_support',
93 'breakpad_component_lib',
95 'direct_dependent_settings': {
106 # GN version: //components/breakpad/tools:crash_service
107 'target_name': 'breakpad_crash_service',
108 'type': 'static_library',
110 '../base/base.gyp:base',
111 '../breakpad/breakpad.gyp:breakpad_handler',
112 '../breakpad/breakpad.gyp:breakpad_sender',
115 'breakpad/tools/crash_service.cc',
116 'breakpad/tools/crash_service.h',
121 ['OS=="win" and target_arch=="ia32"', {
124 # Note: if you depend on this target, you need to either link in
125 # content.gyp:content_common, or add
126 # content/public/common/content_switches.cc to your sources.
127 'target_name': 'breakpad_win64',
128 'type': 'static_library',
130 'breakpad/app/breakpad_client.cc',
131 'breakpad/app/breakpad_client.h',
132 'breakpad/app/breakpad_linux.cc',
133 'breakpad/app/breakpad_linux.h',
134 'breakpad/app/breakpad_linux_impl.h',
135 'breakpad/app/breakpad_mac.h',
136 'breakpad/app/breakpad_mac.mm',
137 'breakpad/app/breakpad_win.cc',
138 'breakpad/app/breakpad_win.h',
139 # TODO(siggi): test the x64 version too.
140 'breakpad/app/crash_keys_win.cc',
141 'breakpad/app/crash_keys_win.h',
142 'breakpad/app/hard_error_handler_win.cc',
143 'breakpad/app/hard_error_handler_win.h',
146 'COMPILE_CONTENT_STATICALLY',
147 'BREAKPAD_IMPLEMENTATION',
150 '../base/base.gyp:base_win64',
151 '../breakpad/breakpad.gyp:breakpad_handler_win64',
152 '../breakpad/breakpad.gyp:breakpad_sender_win64',
153 '../sandbox/sandbox.gyp:sandbox_win64',
157 'msvs_target_platform': 'x64',
162 'target_name': 'breakpad_crash_service_win64',
163 'type': 'static_library',
165 '../base/base.gyp:base_win64',
166 '../breakpad/breakpad.gyp:breakpad_handler_win64',
167 '../breakpad/breakpad.gyp:breakpad_sender_win64',
170 'breakpad/tools/crash_service.cc',
171 'breakpad/tools/crash_service.h',
175 'msvs_target_platform': 'x64',
184 'target_name': 'breakpad_stubs',
185 'type': 'static_library',
187 '../base/base.gyp:base',
190 'breakpad/app/breakpad_client.cc',
191 'breakpad/app/breakpad_client.h',
192 'breakpad/app/breakpad_mac.h',
193 'breakpad/app/breakpad_mac_stubs.mm',
198 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_build != 1', {
201 # GN version: //components/breakpad/browser
202 'target_name': 'breakpad_host',
203 'type': 'static_library',
205 'breakpad_component',
206 '../base/base.gyp:base',
207 '../breakpad/breakpad.gyp:breakpad_client',
208 '../content/content.gyp:content_browser',
209 '../content/content.gyp:content_common',
212 'breakpad/browser/crash_dump_manager_android.cc',
213 'breakpad/browser/crash_dump_manager_android.h',
214 'breakpad/browser/crash_handler_host_linux.cc',
215 'breakpad/browser/crash_handler_host_linux.h',
220 'target_conditions': [
221 # Need 'target_conditions' to override default filename_rules to include
222 # the files on Android.
225 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'],