Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: components/crash.gypi

Issue 1416133003: Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some stub gn files Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/interactive_ui_tests.isolate ('k') | components/crash/content/app/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 # GN version: //components/crash/core/browser 8 # GN version: //components/crash/core/browser
9 'target_name': 'crash_core_browser', 9 'target_name': 'crash_core_browser',
10 'type': 'static_library', 10 'type': 'static_library',
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 'include_dirs': [ 87 'include_dirs': [
88 '..', 88 '..',
89 '../breakpad/src', 89 '../breakpad/src',
90 ], 90 ],
91 }, 91 },
92 { 92 {
93 # TODO(mark): https://crbug.com/466890: merge this target with 93 # TODO(mark): https://crbug.com/466890: merge this target with
94 # crash_component. 94 # crash_component.
95 # 95 #
96 # This is a temporary base target that is depended on by both 96 # This is a temporary base target that is depended on by both
97 # crash_component and crash_component_breakpad_mac_to_be_deleted. It 97 # crash_component and crash_component_breakpad_to_be_deleted. It
98 # provides everything common to both of those targets. For a short per iod, 98 # provides everything common to both of those targets. For a short
99 # there are two Mac crash component implementations. The new one uses a 99 # period, there are two Mac and Windows crash component
100 # Crashpad implementation and is used by Chrome. The old one uses a 100 # implementations. The new one uses a Crashpad implementation and is
101 # Breakpad implementation and is used by content_shell. Consumers shou ld 101 # used by Chrome. The old one uses a Breakpad implementation and is
102 # depend on the desired target. All three targets behave identically o n 102 # used by content_shell. Consumers should depend on the desired
103 # non-Mac. When content_shell and any other consumers are migrated to the 103 # target. All three targets behave identically on non-Mac/-Windows.
104 # Crashpad implementation on Mac, crash_component will merge back into 104 # When content_shell and any other consumers are migrated to the
105 # this target, crash_component_non_mac, which will be renamed 105 # Crashpad implementation on Mac/Windows, crash_component will merge
106 # crash_component. crash_component_breakpad_mac_to_be_deleted will be 106 # back into this target, crash_component_non_mac_win, which will be
107 # deleted. 107 # renamed crash_component. crash_component_breakpad_to_be_deleted will
108 # be deleted.
108 # 109 #
109 # While this situation exists: 110 # While this situation exists:
110 # 111 #
111 # Do not depend on this target directly! Depend on 112 # Do not depend on this target directly! Depend on
112 # crash_component_breakpad_mac_to_be_deleted for old Breakpad behavior on 113 # crash_component_breakpad_to_be_deleted for old Breakpad behavior on
113 # all platforms, or preferably, depend on crash_component to get Break pad 114 # all platforms, or preferably, depend on crash_component to get Break pad
114 # everywhere except for Mac, where you will get Crashpad. 115 # everywhere except for Mac and Windows, where you will get Crashpad.
115 # 116 #
116 # GN version: //components/crash/content/app:app_non_mac 117 # GN version: //components/crash/content/app:app_non_mac
117 'target_name': 'crash_component_non_mac', 118 'target_name': 'crash_component_non_mac_win',
118 'variables': { 119 'variables': {
119 'conditions': [ 120 'conditions': [
120 ['OS == "ios" or OS == "mac"', { 121 ['OS == "ios" or OS == "mac"', {
121 # On IOS there are no files compiled into the library, and we 122 # On IOS there are no files compiled into the library, and we
122 # can't have libraries with zero objects. 123 # can't have libraries with zero objects.
123 # For now, the same applies to Mac OS X, until this target merge s 124 # For now, the same applies to Mac OS X, until this target
124 # with crash_component. 125 # merges with crash_component.
125 'crash_component_target_type%': 'none', 126 'crash_component_target_type%': 'none',
126 }, { 127 }, {
127 'crash_component_target_type%': 'static_library', 128 'crash_component_target_type%': 'static_library',
128 }], 129 }],
129 ], 130 ],
130 }, 131 },
131 'type': '<(crash_component_target_type)', 132 'type': '<(crash_component_target_type)',
132 'sources': [ 133 'sources': [
133 'crash/content/app/breakpad_linux.cc', 134 'crash/content/app/breakpad_linux.cc',
134 'crash/content/app/breakpad_linux.h', 135 'crash/content/app/breakpad_linux.h',
135 'crash/content/app/breakpad_linux_impl.h', 136 'crash/content/app/breakpad_linux_impl.h',
136 'crash/content/app/breakpad_win.cc',
137 'crash/content/app/breakpad_win.h',
138 'crash/content/app/hard_error_handler_win.cc', 137 'crash/content/app/hard_error_handler_win.cc',
139 'crash/content/app/hard_error_handler_win.h', 138 'crash/content/app/hard_error_handler_win.h',
140 ], 139 ],
141 'dependencies': [ 140 'dependencies': [
142 'crash_component_lib', 141 'crash_component_lib',
143 '../base/base.gyp:base', 142 '../base/base.gyp:base',
144 ], 143 ],
145 'defines': ['CRASH_IMPLEMENTATION'], 144 'defines': ['CRASH_IMPLEMENTATION'],
146 'conditions': [ 145 'conditions': [
147 ['OS=="win"', { 146 ['OS=="win"', {
(...skipping 23 matching lines...) Expand all
171 ], 170 ],
172 }, 171 },
173 { 172 {
174 # Note: if you depend on this target, you need to either link in 173 # Note: if you depend on this target, you need to either link in
175 # content.gyp:content_common, or add 174 # content.gyp:content_common, or add
176 # content/public/common/content_switches.cc to your sources. 175 # content/public/common/content_switches.cc to your sources.
177 # 176 #
178 # GN version: //components/crash/content/app 177 # GN version: //components/crash/content/app
179 178
180 # TODO(mark): https://crbug.com/466890: merge this target with 179 # TODO(mark): https://crbug.com/466890: merge this target with
181 # crash_component_non_mac. 180 # crash_component_non_mac_win.
182 # 181 #
183 # Most of this target is actually in its dependency, 182 # Most of this target is actually in its dependency,
184 # crash_component_non_mac. See the comment in that target for an 183 # crash_component_non_mac_win. See the comment in that target for an
185 # explanation for the split. The split is temporary and the two target s 184 # explanation for the split. The split is temporary and the two target s
186 # will be unified again soon. 185 # will be unified again soon.
187 'target_name': 'crash_component', 186 'target_name': 'crash_component',
188 'variables': { 187 'variables': {
189 'conditions': [ 188 'conditions': [
190 ['OS != "mac" ', { 189 ['OS != "mac" and OS != "win"', {
191 # There are no source files on any platform but Mac OS X. 190 # There are no source files except on Mac OS X and Windows.
192 'crash_component_target_type%': 'none', 191 'crash_component_target_type%': 'none',
193 }, { 192 }, {
194 'crash_component_target_type%': 'static_library', 193 'crash_component_target_type%': 'static_library',
195 }], 194 }],
196 ], 195 ],
197 }, 196 },
198 'type': '<(crash_component_target_type)', 197 'type': '<(crash_component_target_type)',
199 'sources': [ 198 'sources': [
200 'crash/content/app/crashpad_mac.h', 199 'crash/content/app/crashpad.cc',
200 'crash/content/app/crashpad.h',
201 'crash/content/app/crashpad_mac.mm', 201 'crash/content/app/crashpad_mac.mm',
202 'crash/content/app/crashpad_win.cc',
202 ], 203 ],
203 'dependencies': [ 204 'dependencies': [
204 'crash_component_non_mac', 205 'crash_component_non_mac_win',
205 'crash_component_lib', 206 'crash_component_lib',
206 '../base/base.gyp:base', 207 '../base/base.gyp:base',
207 ], 208 ],
208 'defines': ['CRASH_IMPLEMENTATION'], 209 'defines': ['CRASH_IMPLEMENTATION'],
209 'conditions': [ 210 'conditions': [
210 ['OS=="mac"', { 211 ['OS=="mac" or OS=="win"', {
211 'dependencies': [ 212 'dependencies': [
212 '../third_party/crashpad/crashpad/client/client.gyp:crashpad_cli ent', 213 '../third_party/crashpad/crashpad/client/client.gyp:crashpad_cli ent',
213 ], 214 ],
214 }], 215 }],
215 ], 216 ],
216 }, 217 },
217 { 218 {
218 # TODO(mark): https://crbug.com/466890: remove this target. 219 # TODO(mark): https://crbug.com/466890: remove this target.
219 # 220 #
220 # This is a temporary target provided for Mac Breakpad users that have not 221 # This is a temporary target provided for Mac and Windows Breakpad
221 # yet migrated to Crashpad (namely content_shell). This target will be 222 # users that have not yet migrated to Crashpad (namely content_shell).
222 # removed shortly and all consumers will be expected to use Crashpad a s 223 # This target will be removed shortly and all consumers will be
223 # the Mac crash-reporting client. See the comment in the 224 # expected to use Crashpad as the Mac and Windows crash-reporting
224 # crash_component_non_mac target for more details. 225 # client. See the comment in the crash_component_non_mac_win target
226 # for more details.
225 # 227 #
226 # GN version: //components/crash/content/app:app_breakpad_mac_to_be_de leted 228 # GN version: //components/crash/content/app:app_breakpad_mac_to_be_de leted
227 'target_name': 'crash_component_breakpad_mac_to_be_deleted', 229 'target_name': 'crash_component_breakpad_to_be_deleted',
228 'variables': { 230 'variables': {
229 'conditions': [ 231 'conditions': [
230 ['OS != "mac" ', { 232 ['OS != "mac" and OS != "win"', {
231 # There are no source files on any platform but Mac OS X. 233 # There are no source files on any platform but Mac OS X and
234 # Windows.
232 'crash_component_target_type%': 'none', 235 'crash_component_target_type%': 'none',
233 }, { 236 }, {
234 'crash_component_target_type%': 'static_library', 237 'crash_component_target_type%': 'static_library',
235 }], 238 }],
236 ], 239 ],
237 }, 240 },
238 'type': '<(crash_component_target_type)', 241 'type': '<(crash_component_target_type)',
239 'sources': [ 242 'sources': [
240 'crash/content/app/breakpad_mac.h', 243 'crash/content/app/breakpad_mac.h',
241 'crash/content/app/breakpad_mac.mm', 244 'crash/content/app/breakpad_mac.mm',
245 'crash/content/app/breakpad_win.cc',
246 'crash/content/app/breakpad_win.h',
242 ], 247 ],
243 'dependencies': [ 248 'dependencies': [
244 'crash_component_non_mac', 249 'crash_component_non_mac_win',
245 'crash_component_lib', 250 'crash_component_lib',
246 ], 251 ],
247 'defines': ['CRASH_IMPLEMENTATION'], 252 'defines': ['CRASH_IMPLEMENTATION'],
248 'conditions': [ 253 'conditions': [
249 ['OS=="mac"', { 254 ['OS=="mac"', {
250 'dependencies': [ 255 'dependencies': [
251 '../breakpad/breakpad.gyp:breakpad', 256 '../breakpad/breakpad.gyp:breakpad',
252 ], 257 ],
253 'include_dirs': [ 258 'include_dirs': [
254 '..', 259 '..',
255 '../breakpad/src', 260 '../breakpad/src',
256 ], 261 ],
257 }], 262 }],
263 ['OS=="win"', {
264 'dependencies': [
265 '../breakpad/breakpad.gyp:breakpad_handler',
266 ],
267 'include_dirs': [
268 '..',
269 '../breakpad/src',
270 ],
271 }],
258 ], 272 ],
259 }, 273 },
260 { 274 {
261 # GN version: //components/crash/content/app:test_support 275 # GN version: //components/crash/content/app:test_support
262 'target_name': 'crash_test_support', 276 'target_name': 'crash_test_support',
263 'type': 'none', 277 'type': 'none',
264 'dependencies': [ 278 'dependencies': [
265 'crash_component_lib', 279 'crash_component_lib',
266 ], 280 ],
267 'direct_dependent_settings': { 281 'direct_dependent_settings': {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 ], 412 ],
399 }], 413 }],
400 ], 414 ],
401 }, 415 },
402 ], 416 ],
403 }], 417 }],
404 ], 418 ],
405 }], 419 }],
406 ], 420 ],
407 } 421 }
OLDNEW
« no previous file with comments | « chrome/interactive_ui_tests.isolate ('k') | components/crash/content/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698