OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'includes': [ | 6 'includes': [ |
7 'breakpad_sender.gypi', | 7 'breakpad_sender.gypi', |
8 'breakpad_handler.gypi', | 8 'breakpad_handler.gypi', |
9 ], | 9 ], |
10 'conditions': [ | 10 'conditions': [ |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 'src/client/mac/crash_generation/crash_generation_client.cc', | 210 'src/client/mac/crash_generation/crash_generation_client.cc', |
211 'src/client/mac/crash_generation/crash_generation_client.h', | 211 'src/client/mac/crash_generation/crash_generation_client.h', |
212 'src/client/mac/handler/protected_memory_allocator.cc', | 212 'src/client/mac/handler/protected_memory_allocator.cc', |
213 'src/client/mac/handler/exception_handler.cc', | 213 'src/client/mac/handler/exception_handler.cc', |
214 'src/client/mac/Framework/Breakpad.mm', | 214 'src/client/mac/Framework/Breakpad.mm', |
215 'src/client/mac/Framework/OnDemandServer.mm', | 215 'src/client/mac/Framework/OnDemandServer.mm', |
216 ], | 216 ], |
217 }, | 217 }, |
218 ], | 218 ], |
219 }], | 219 }], |
220 [ 'OS=="linux"', { | 220 [ 'OS=="linux" or OS=="android"', { |
221 'conditions': [ | 221 'conditions': [ |
| 222 ['OS=="android"', { |
| 223 'defines': [ |
| 224 '__ANDROID__', |
| 225 ], |
| 226 }], |
222 # Tools needed for archiving build symbols. | 227 # Tools needed for archiving build symbols. |
223 ['linux_breakpad==1', { | 228 ['linux_breakpad==1', { |
224 'targets': [ | 229 'targets': [ |
225 { | 230 { |
| 231 'target_name': 'minidump_stackwalk', |
| 232 'type': 'executable', |
| 233 |
| 234 # This uses the system libcurl, so don't use the default 32-bit |
| 235 # compile flags when building on a 64-bit machine. |
| 236 'variables': { |
| 237 'host_arch': '<!(uname -m)', |
| 238 }, |
| 239 'conditions': [ |
| 240 ['host_arch=="x86_64"', { |
| 241 'cflags!': ['-m32', '-march=pentium4', '-msse2', |
| 242 '-mfpmath=sse'], |
| 243 'ldflags!': ['-m32'], |
| 244 'cflags': ['-O2'], |
| 245 'include_dirs!': ['/usr/include32'], |
| 246 }], |
| 247 ['OS=="android"', { |
| 248 'toolsets': [ 'host' ], |
| 249 }], |
| 250 ], |
| 251 'include_dirs': [ |
| 252 'src', |
| 253 'src/third_party', |
| 254 '..', |
| 255 ], |
| 256 'sources': [ |
| 257 'src/google_breakpad/procesor/call_stack.h', |
| 258 'src/processor/minidump_stackwalk.cc', |
| 259 'src/processor/stackwalker.cc', |
| 260 'src/processor/stackwalker.h', |
| 261 'src/processor/basic_code_module.h', |
| 262 'src/processor/basic_code_modules.cc', |
| 263 'src/processor/basic_code_modules.h', |
| 264 'src/processor/basic_source_line_resolver.cc', |
| 265 'src/processor/basic_source_line_resolver.h', |
| 266 'src/processor/binarystream.cc', |
| 267 'src/processor/binarystream.h', |
| 268 'src/processor/call_stack.cc', |
| 269 'src/processor/cfi_frame_info.cc', |
| 270 'src/processor/cfi_frame_info.h', |
| 271 'src/processor/disassembler_x86.cc', |
| 272 'src/processor/disassembler_x86.h', |
| 273 'src/processor/exploitability.cc', |
| 274 'src/processor/exploitability.h', |
| 275 'src/processor/exploitability_win.cc', |
| 276 'src/processor/exploitability_win.h', |
| 277 'src/processor/logging.cc', |
| 278 'src/processor/logging.h', |
| 279 'src/processor/minidump.cc', |
| 280 'src/processor/minidump.h', |
| 281 'src/processor/minidump_processor.cc', |
| 282 'src/processor/minidump_processor.h', |
| 283 'src/processor/pathname_stripper.cc', |
| 284 'src/processor/pathname_stripper.h', |
| 285 'src/processor/process_state.cc', |
| 286 'src/processor/process_state.h', |
| 287 'src/processor/simple_symbol_supplier.cc', |
| 288 'src/processor/simple_symbol_supplier.h', |
| 289 'src/processor/source_line_resolver_base.cc', |
| 290 'src/processor/source_line_resolver_base.h', |
| 291 'src/processor/stackwalker.cc', |
| 292 'src/processor/stackwalker.h', |
| 293 'src/processor/stackwalker_amd64.cc', |
| 294 'src/processor/stackwalker_amd64.h', |
| 295 'src/processor/stackwalker_arm.cc', |
| 296 'src/processor/stackwalker_arm.h', |
| 297 'src/processor/stackwalker_ppc.cc', |
| 298 'src/processor/stackwalker_ppc.h', |
| 299 'src/processor/stackwalker_sparc.cc', |
| 300 'src/processor/stackwalker_sparc.h', |
| 301 'src/processor/stackwalker_x86.cc', |
| 302 'src/processor/stackwalker_x86.h', |
| 303 'src/processor/tokenize.cc', |
| 304 'src/processor/tokenize.h', |
| 305 # libdisasm |
| 306 'src/third_party/libdisasm/ia32_implicit.c', |
| 307 'src/third_party/libdisasm/ia32_implicit.h', |
| 308 'src/third_party/libdisasm/ia32_insn.c', |
| 309 'src/third_party/libdisasm/ia32_insn.h', |
| 310 'src/third_party/libdisasm/ia32_invariant.c', |
| 311 'src/third_party/libdisasm/ia32_invariant.h', |
| 312 'src/third_party/libdisasm/ia32_modrm.c', |
| 313 'src/third_party/libdisasm/ia32_modrm.h', |
| 314 'src/third_party/libdisasm/ia32_opcode_tables.c', |
| 315 'src/third_party/libdisasm/ia32_opcode_tables.h', |
| 316 'src/third_party/libdisasm/ia32_operand.c', |
| 317 'src/third_party/libdisasm/ia32_operand.h', |
| 318 'src/third_party/libdisasm/ia32_reg.c', |
| 319 'src/third_party/libdisasm/ia32_reg.h', |
| 320 'src/third_party/libdisasm/ia32_settings.c', |
| 321 'src/third_party/libdisasm/ia32_settings.h', |
| 322 'src/third_party/libdisasm/libdis.h', |
| 323 'src/third_party/libdisasm/qword.h', |
| 324 'src/third_party/libdisasm/x86_disasm.c', |
| 325 'src/third_party/libdisasm/x86_format.c', |
| 326 'src/third_party/libdisasm/x86_imm.c', |
| 327 'src/third_party/libdisasm/x86_imm.h', |
| 328 'src/third_party/libdisasm/x86_insn.c', |
| 329 'src/third_party/libdisasm/x86_misc.c', |
| 330 'src/third_party/libdisasm/x86_operand_list.c', |
| 331 'src/third_party/libdisasm/x86_operand_list.h', |
| 332 ], |
| 333 }, |
| 334 { |
| 335 'target_name': 'minidump_dump', |
| 336 'type': 'executable', |
| 337 # This uses the system libcurl, so don't use the default 32-bit |
| 338 # compile flags when building on a 64-bit machine. |
| 339 'variables': { |
| 340 'host_arch': '<!(uname -m)', |
| 341 }, |
| 342 'conditions': [ |
| 343 ['host_arch=="x86_64"', { |
| 344 'cflags!': ['-m32', '-march=pentium4', '-msse2', |
| 345 '-mfpmath=sse'], |
| 346 'ldflags!': ['-m32'], |
| 347 'cflags': ['-O2'], |
| 348 'include_dirs!': ['/usr/include32'], |
| 349 }], |
| 350 ['OS=="android"', { |
| 351 'toolsets': [ 'host' ], |
| 352 }], |
| 353 ], |
| 354 'sources': [ |
| 355 'src/processor/minidump_dump.cc', |
| 356 'src/processor/basic_code_module.h', |
| 357 'src/processor/basic_code_modules.h', |
| 358 'src/processor/basic_code_modules.cc', |
| 359 'src/processor/logging.h', |
| 360 'src/processor/logging.cc', |
| 361 'src/processor/minidump.h', |
| 362 'src/processor/minidump.cc', |
| 363 'src/processor/pathname_stripper.h', |
| 364 'src/processor/pathname_stripper.cc', |
| 365 ], |
| 366 'include_dirs': [ |
| 367 'src', |
| 368 'src/third_party', |
| 369 '..', |
| 370 ], |
| 371 }, |
| 372 { |
226 'target_name': 'symupload', | 373 'target_name': 'symupload', |
227 'type': 'executable', | 374 'type': 'executable', |
228 | 375 |
229 # This uses the system libcurl, so don't use the default 32-bit | 376 # This uses the system libcurl, so don't use the default 32-bit |
230 # compile flags when building on a 64-bit machine. | 377 # compile flags when building on a 64-bit machine. |
231 'variables': { | 378 'variables': { |
232 'host_arch': '<!(uname -m)', | 379 'host_arch': '<!(uname -m)', |
233 }, | 380 }, |
234 'conditions': [ | 381 'conditions': [ |
235 ['host_arch=="x86_64"', { | 382 ['host_arch=="x86_64"', { |
236 'cflags!': ['-m32', '-march=pentium4', '-msse2', | 383 'cflags!': ['-m32', '-march=pentium4', '-msse2', |
237 '-mfpmath=sse'], | 384 '-mfpmath=sse'], |
238 'ldflags!': ['-m32'], | 385 'ldflags!': ['-m32'], |
239 'cflags': ['-O2'], | 386 'cflags': ['-O2'], |
240 'include_dirs!': ['/usr/include32'], | 387 'include_dirs!': ['/usr/include32'], |
241 }], | 388 }], |
| 389 ['OS=="android"', { |
| 390 'toolsets': [ 'host' ], |
| 391 }], |
242 ], | 392 ], |
243 | 393 |
244 'sources': [ | 394 'sources': [ |
245 'src/tools/linux/symupload/sym_upload.cc', | 395 'src/tools/linux/symupload/sym_upload.cc', |
246 'src/common/linux/http_upload.cc', | 396 'src/common/linux/http_upload.cc', |
247 'src/common/linux/http_upload.h', | 397 'src/common/linux/http_upload.h', |
248 ], | 398 ], |
249 'include_dirs': [ | 399 'include_dirs': [ |
250 'src', | 400 'src', |
251 ], | 401 ], |
252 'link_settings': { | 402 'link_settings': { |
253 'libraries': [ | 403 'libraries': [ |
254 '-ldl', | 404 '-ldl', |
255 ], | 405 ], |
256 }, | 406 }, |
257 }, | 407 }, |
258 { | 408 { |
259 'target_name': 'dump_syms', | 409 'target_name': 'dump_syms', |
260 'type': 'executable', | 410 'type': 'executable', |
| 411 'conditions': [ |
| 412 ['OS=="android"', { |
| 413 'toolsets': [ 'host' ], |
| 414 }], |
| 415 ], |
261 | 416 |
262 # dwarf2reader.cc uses dynamic_cast. Because we don't typically | 417 # dwarf2reader.cc uses dynamic_cast. Because we don't typically |
263 # don't support RTTI, we enable it for this single target. Since | 418 # don't support RTTI, we enable it for this single target. Since |
264 # dump_syms doesn't share any object files with anything else, | 419 # dump_syms doesn't share any object files with anything else, |
265 # this doesn't end up polluting Chrome itself. | 420 # this doesn't end up polluting Chrome itself. |
266 'cflags_cc!': ['-fno-rtti'], | 421 'cflags_cc!': ['-fno-rtti'], |
267 | 422 |
268 'sources': [ | 423 'sources': [ |
269 'src/common/dwarf/bytereader.cc', | 424 'src/common/dwarf/bytereader.cc', |
270 'src/common/dwarf_cfi_to_module.cc', | 425 'src/common/dwarf_cfi_to_module.cc', |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 'src/common/linux/safe_readlink.h', | 506 'src/common/linux/safe_readlink.h', |
352 'src/common/memory.h', | 507 'src/common/memory.h', |
353 'src/common/string_conversion.cc', | 508 'src/common/string_conversion.cc', |
354 'src/common/string_conversion.h', | 509 'src/common/string_conversion.h', |
355 ], | 510 ], |
356 | 511 |
357 'conditions': [ | 512 'conditions': [ |
358 ['target_arch=="arm"', { | 513 ['target_arch=="arm"', { |
359 'cflags': ['-Wa,-mimplicit-it=always'], | 514 'cflags': ['-Wa,-mimplicit-it=always'], |
360 }], | 515 }], |
| 516 ['OS=="android"', { |
| 517 'sources!':[ |
| 518 'src/common/linux/elf_core_dump.cc', |
| 519 'src/common/linux/elf_core_dump.h', |
| 520 ], |
| 521 }], |
361 ], | 522 ], |
362 | 523 |
363 'link_settings': { | 524 'link_settings': { |
364 'libraries': [ | 525 'libraries': [ |
365 '-ldl', | 526 '-ldl', |
366 ], | 527 ], |
367 }, | 528 }, |
368 | 529 |
369 'include_dirs': [ | 530 'include_dirs': [ |
370 'src', | 531 'src', |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 661 |
501 'include_dirs': [ | 662 'include_dirs': [ |
502 '..', | 663 '..', |
503 'src', | 664 'src', |
504 ], | 665 ], |
505 }, | 666 }, |
506 ], | 667 ], |
507 }], | 668 }], |
508 ], | 669 ], |
509 } | 670 } |
OLD | NEW |