| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 config("tools_config") { | 5 config("tools_config") { |
| 6 include_dirs = [ "src", "src/third_party" ] | 6 include_dirs = [ "src", "src/third_party" ] |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 defines = [ "__ANDROID__" ] | 8 defines = [ "__ANDROID__" ] |
| 9 } | 9 } |
| 10 if (is_clang) { | 10 if (is_clang) { |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 sources = [ | 199 sources = [ |
| 200 "src/common/mac/HTTPMultipartUpload.m", | 200 "src/common/mac/HTTPMultipartUpload.m", |
| 201 "src/tools/mac/symupload/symupload.m", | 201 "src/tools/mac/symupload/symupload.m", |
| 202 ] | 202 ] |
| 203 | 203 |
| 204 libs = [ "Foundaction.framework" ] | 204 libs = [ "Foundaction.framework" ] |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 | 207 |
| 208 if (is_mac) { | 208 if (is_mac) { |
| 209 static_library("breakpad_utilities") { | 209 static_library("utilities") { |
| 210 sources = [ | 210 sources = [ |
| 211 "src/client/mac/handler/breakpad_nlist_64.cc", | 211 "src/client/mac/handler/breakpad_nlist_64.cc", |
| 212 "src/client/mac/handler/dynamic_images.cc", | 212 "src/client/mac/handler/dynamic_images.cc", |
| 213 "src/client/mac/handler/minidump_generator.cc", | 213 "src/client/mac/handler/minidump_generator.cc", |
| 214 "src/client/minidump_file_writer.cc", | 214 "src/client/minidump_file_writer.cc", |
| 215 "src/common/convert_UTF.c", | 215 "src/common/convert_UTF.c", |
| 216 "src/common/mac/MachIPC.mm", | 216 "src/common/mac/MachIPC.mm", |
| 217 "src/common/mac/arch_utilities.cc", | 217 "src/common/mac/arch_utilities.cc", |
| 218 "src/common/mac/bootstrap_compat.cc", | 218 "src/common/mac/bootstrap_compat.cc", |
| 219 "src/common/mac/file_id.cc", | 219 "src/common/mac/file_id.cc", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 241 include_dirs = [ | 241 include_dirs = [ |
| 242 "src/client/apple/Framework", | 242 "src/client/apple/Framework", |
| 243 "src/common/mac", | 243 "src/common/mac", |
| 244 ] | 244 ] |
| 245 libs = [ | 245 libs = [ |
| 246 "CoreServices.framework", | 246 "CoreServices.framework", |
| 247 "Foundation.framework", | 247 "Foundation.framework", |
| 248 ] | 248 ] |
| 249 | 249 |
| 250 deps = [ | 250 deps = [ |
| 251 ":breakpad_utilities" | 251 ":utilities" |
| 252 ] | 252 ] |
| 253 } | 253 } |
| 254 | 254 |
| 255 executable("crash_report_sender") { | 255 executable("crash_report_sender") { |
| 256 # TODO(GYP) this target has some mac_bundle_resources stuff. | 256 # TODO(GYP) this target has some mac_bundle_resources stuff. |
| 257 } | 257 } |
| 258 | 258 |
| 259 config("breakpad_config") { | 259 config("breakpad_config") { |
| 260 include_dirs = [ "src/client/apple/Framework" ] | 260 include_dirs = [ "src/client/apple/Framework" ] |
| 261 } | 261 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 272 | 272 |
| 273 configs += [ ":internal_config" ] | 273 configs += [ ":internal_config" ] |
| 274 direct_dependent_configs = [ ":breakpad_config" ] | 274 direct_dependent_configs = [ ":breakpad_config" ] |
| 275 | 275 |
| 276 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] | 276 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] |
| 277 include_dirs = [ | 277 include_dirs = [ |
| 278 "src/client/apple/Framework", | 278 "src/client/apple/Framework", |
| 279 ] | 279 ] |
| 280 | 280 |
| 281 deps = [ | 281 deps = [ |
| 282 ":breakpad_utilities", | 282 ":utilities", |
| 283 ":crash_inspector", | 283 ":crash_inspector", |
| 284 ":crash_report_sender", | 284 ":crash_report_sender", |
| 285 ] | 285 ] |
| 286 } | 286 } |
| 287 } | 287 } |
| 288 | 288 |
| 289 if (is_linux || is_android) { | 289 if (is_linux || is_android) { |
| 290 executable("symupload") { | 290 executable("symupload") { |
| 291 sources = [ | 291 sources = [ |
| 292 "src/tools/linux/symupload/sym_upload.cc", | 292 "src/tools/linux/symupload/sym_upload.cc", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 configs += [ "//build/config/compiler:rtti" ] | 355 configs += [ "//build/config/compiler:rtti" ] |
| 356 | 356 |
| 357 # Breakpad rev 583 introduced this flag. | 357 # Breakpad rev 583 introduced this flag. |
| 358 # Using this define, stabs_reader.h will include a.out.h to | 358 # Using this define, stabs_reader.h will include a.out.h to |
| 359 # build on Linux. | 359 # build on Linux. |
| 360 defines = [ "HAVE_A_OUT_H" ] | 360 defines = [ "HAVE_A_OUT_H" ] |
| 361 | 361 |
| 362 include_dirs = [ "src" ] | 362 include_dirs = [ "src" ] |
| 363 } | 363 } |
| 364 | 364 |
| 365 config("breakpad_client_config") { | 365 config("client_config") { |
| 366 include_dirs = [ "src" ] |
| 366 if (is_android) { | 367 if (is_android) { |
| 367 include_dirs = [ "src/common/android/include" ] | 368 include_dirs += [ "src/common/android/include" ] |
| 368 } | 369 } |
| 369 } | 370 } |
| 370 | 371 |
| 371 static_library("breakpad_client") { | 372 static_library("client") { |
| 372 sources = [ | 373 sources = [ |
| 373 "src/client/linux/crash_generation/crash_generation_client.cc", | 374 "src/client/linux/crash_generation/crash_generation_client.cc", |
| 374 "src/client/linux/crash_generation/crash_generation_client.h", | 375 "src/client/linux/crash_generation/crash_generation_client.h", |
| 375 "src/client/linux/handler/exception_handler.cc", | 376 "src/client/linux/handler/exception_handler.cc", |
| 376 "src/client/linux/handler/exception_handler.h", | 377 "src/client/linux/handler/exception_handler.h", |
| 377 "src/client/linux/handler/minidump_descriptor.cc", | 378 "src/client/linux/handler/minidump_descriptor.cc", |
| 378 "src/client/linux/handler/minidump_descriptor.h", | 379 "src/client/linux/handler/minidump_descriptor.h", |
| 379 "src/client/linux/log/log.cc", | 380 "src/client/linux/log/log.cc", |
| 380 "src/client/linux/log/log.h", | 381 "src/client/linux/log/log.h", |
| 381 "src/client/linux/minidump_writer/cpu_set.h", | 382 "src/client/linux/minidump_writer/cpu_set.h", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 "src/common/linux/safe_readlink.h", | 416 "src/common/linux/safe_readlink.h", |
| 416 "src/common/memory.h", | 417 "src/common/memory.h", |
| 417 "src/common/simple_string_dictionary.cc", | 418 "src/common/simple_string_dictionary.cc", |
| 418 "src/common/simple_string_dictionary.h", | 419 "src/common/simple_string_dictionary.h", |
| 419 "src/common/string_conversion.cc", | 420 "src/common/string_conversion.cc", |
| 420 "src/common/string_conversion.h", | 421 "src/common/string_conversion.h", |
| 421 ] | 422 ] |
| 422 | 423 |
| 423 configs -= [ "//build/config/compiler:chromium_code" ] | 424 configs -= [ "//build/config/compiler:chromium_code" ] |
| 424 configs += [ "//build/config/compiler:no_chromium_code" ] | 425 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 425 direct_dependent_configs = [ ":breakpad_client_config" ] | 426 direct_dependent_configs = [ ":client_config" ] |
| 426 | 427 |
| 427 # Android NDK toolchain doesn't support -mimplicit-it=always | 428 # Android NDK toolchain doesn't support -mimplicit-it=always |
| 428 if (cpu_arch == "arm" && !is_android) { | 429 if (cpu_arch == "arm" && !is_android) { |
| 429 cflags = [ "-Wa,-mimplicit-it=always" ] | 430 cflags = [ "-Wa,-mimplicit-it=always" ] |
| 430 } | 431 } |
| 431 if (cpu_arch == "arm" && is_chromeos) { | 432 if (cpu_arch == "arm" && is_chromeos) { |
| 432 # Avoid running out of registers in | 433 # Avoid running out of registers in |
| 433 # linux_syscall_support.h:sys_clone()'s inline assembly. | 434 # linux_syscall_support.h:sys_clone()'s inline assembly. |
| 434 cflags = [ "-marm" ] | 435 cflags = [ "-marm" ] |
| 435 } | 436 } |
| 436 | 437 |
| 437 if (is_android) { | 438 if (is_android) { |
| 438 sources += [ "src/common/android/breakpad_getcontext.S" ] | 439 sources += [ "src/common/android/breakpad_getcontext.S" ] |
| 439 } | 440 } |
| 440 | 441 |
| 441 libs = [ "dl" ] | 442 libs = [ "dl" ] |
| 442 | 443 |
| 443 include_dirs = [ | 444 include_dirs = [ |
| 444 ".", | 445 ".", |
| 445 "src", | 446 "src", |
| 446 "src/client", | 447 "src/client", |
| 447 "src/third_party/linux/include", | 448 "src/third_party/linux/include", |
| 448 ] | 449 ] |
| 449 } | 450 } |
| 450 | 451 |
| 451 static_library("breakpad_processor_support") { | 452 static_library("processor_support") { |
| 452 sources = [ | 453 sources = [ |
| 453 "src/common/scoped_ptr.h", | 454 "src/common/scoped_ptr.h", |
| 454 "src/processor/basic_code_modules.cc", | 455 "src/processor/basic_code_modules.cc", |
| 455 "src/processor/basic_code_modules.h", | 456 "src/processor/basic_code_modules.h", |
| 456 "src/processor/logging.cc", | 457 "src/processor/logging.cc", |
| 457 "src/processor/logging.h", | 458 "src/processor/logging.h", |
| 458 "src/processor/minidump.cc", | 459 "src/processor/minidump.cc", |
| 459 "src/processor/pathname_stripper.cc", | 460 "src/processor/pathname_stripper.cc", |
| 460 "src/processor/pathname_stripper.h", | 461 "src/processor/pathname_stripper.h", |
| 461 ] | 462 ] |
| (...skipping 29 matching lines...) Expand all Loading... |
| 491 "src/common/memory_unittest.cc", | 492 "src/common/memory_unittest.cc", |
| 492 "src/common/simple_string_dictionary_unittest.cc", | 493 "src/common/simple_string_dictionary_unittest.cc", |
| 493 "src/common/test_assembler.cc", | 494 "src/common/test_assembler.cc", |
| 494 "src/common/tests/file_utils.cc", | 495 "src/common/tests/file_utils.cc", |
| 495 "src/common/tests/file_utils.h", | 496 "src/common/tests/file_utils.h", |
| 496 "src/tools/linux/md2core/minidump_memory_range.h", | 497 "src/tools/linux/md2core/minidump_memory_range.h", |
| 497 "src/tools/linux/md2core/minidump_memory_range_unittest.cc", | 498 "src/tools/linux/md2core/minidump_memory_range_unittest.cc", |
| 498 ] | 499 ] |
| 499 | 500 |
| 500 deps = [ | 501 deps = [ |
| 501 ":breakpad_client", | 502 ":client", |
| 502 ":breakpad_processor_support", | 503 ":processor_support", |
| 503 ":linux_dumper_unittest_helper", | 504 ":linux_dumper_unittest_helper", |
| 504 "//testing/gtest", | 505 "//testing/gtest", |
| 505 "//testing/gtest:gtest_main", | 506 "//testing/gtest:gtest_main", |
| 506 "//testing/gmock", | 507 "//testing/gmock", |
| 507 ] | 508 ] |
| 508 | 509 |
| 509 include_dirs = [ | 510 include_dirs = [ |
| 510 "linux", # Use our copy of breakpad_googletest_includes.h | 511 "linux", # Use our copy of breakpad_googletest_includes.h |
| 511 "src", | 512 "src", |
| 512 ".", | 513 ".", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 527 libs = [ "log" ] | 528 libs = [ "log" ] |
| 528 include_dirs = [ "src/common/android/include" ] | 529 include_dirs = [ "src/common/android/include" ] |
| 529 } | 530 } |
| 530 } | 531 } |
| 531 | 532 |
| 532 executable("linux_dumper_unittest_helper") { | 533 executable("linux_dumper_unittest_helper") { |
| 533 sources = [ | 534 sources = [ |
| 534 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", | 535 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", |
| 535 ] | 536 ] |
| 536 deps = [ | 537 deps = [ |
| 537 ":breakpad_processor_support", | 538 ":processor_support", |
| 538 ] | 539 ] |
| 539 | 540 |
| 540 include_dirs = [ | 541 include_dirs = [ |
| 541 "src", | 542 "src", |
| 542 ] | 543 ] |
| 543 | 544 |
| 544 if (cpu_arch == "mipsel" && is_android) { | 545 if (cpu_arch == "mipsel" && is_android) { |
| 545 include_dirs += [ "src/common/android/include" ] | 546 include_dirs += [ "src/common/android/include" ] |
| 546 } | 547 } |
| 547 } | 548 } |
| 548 | 549 |
| 549 | 550 |
| 550 executable("generate_test_dump") { | 551 executable("generate_test_dump") { |
| 551 sources = [ | 552 sources = [ |
| 552 "linux/generate-test-dump.cc", | 553 "linux/generate-test-dump.cc", |
| 553 ] | 554 ] |
| 554 | 555 |
| 555 # This file has an unused variable warning. | 556 # This file has an unused variable warning. |
| 556 configs -= [ "//build/config/compiler:chromium_code" ] | 557 configs -= [ "//build/config/compiler:chromium_code" ] |
| 557 configs += [ "//build/config/compiler:no_chromium_code" ] | 558 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 558 | 559 |
| 559 deps = [ ":breakpad_client" ] | 560 deps = [ ":client" ] |
| 560 | 561 |
| 561 include_dirs = [ "src" ] | 562 include_dirs = [ "src" ] |
| 562 | 563 |
| 563 if (is_android) { | 564 if (is_android) { |
| 564 libs = [ "log" ] | 565 libs = [ "log" ] |
| 565 include_dirs += [ "src/common/android/include" ] | 566 include_dirs += [ "src/common/android/include" ] |
| 566 } | 567 } |
| 567 } | 568 } |
| 568 | 569 |
| 569 executable("minidump-2-core") { | 570 executable("minidump-2-core") { |
| 570 sources = [ "src/tools/linux/md2core/minidump-2-core.cc" ] | 571 sources = [ "src/tools/linux/md2core/minidump-2-core.cc" ] |
| 571 | 572 |
| 572 include_dirs = [ "src" ] | 573 include_dirs = [ "src" ] |
| 573 | 574 |
| 574 deps = [ ":breakpad_client" ] | 575 deps = [ ":client" ] |
| 575 } | 576 } |
| 576 | 577 |
| 577 executable("core-2-minidump") { | 578 executable("core-2-minidump") { |
| 578 sources = [ | 579 sources = [ |
| 579 "src/tools/linux/core2md/core2md.cc", | 580 "src/tools/linux/core2md/core2md.cc", |
| 580 ] | 581 ] |
| 581 | 582 |
| 582 deps = [ | 583 deps = [ |
| 583 ":breakpad_client", | 584 ":client", |
| 584 ] | 585 ] |
| 585 | 586 |
| 586 include_dirs = [ "src" ] | 587 include_dirs = [ "src" ] |
| 587 } | 588 } |
| 588 } | 589 } |
| 589 | 590 |
| 590 if (is_ios) { | 591 if (is_ios) { |
| 591 static_library("breakpad_client") { | 592 static_library("client") { |
| 592 sources = [ | 593 sources = [ |
| 593 "src/client/ios/Breakpad.h", | 594 "src/client/ios/Breakpad.h", |
| 594 "src/client/ios/Breakpad.mm", | 595 "src/client/ios/Breakpad.mm", |
| 595 "src/client/ios/BreakpadController.h", | 596 "src/client/ios/BreakpadController.h", |
| 596 "src/client/ios/BreakpadController.mm", | 597 "src/client/ios/BreakpadController.mm", |
| 597 "src/client/ios/handler/ios_exception_minidump_generator.mm", | 598 "src/client/ios/handler/ios_exception_minidump_generator.mm", |
| 598 "src/client/ios/handler/ios_exception_minidump_generator.h", | 599 "src/client/ios/handler/ios_exception_minidump_generator.h", |
| 599 "src/client/mac/crash_generation/ConfigFile.h", | 600 "src/client/mac/crash_generation/ConfigFile.h", |
| 600 "src/client/mac/crash_generation/ConfigFile.mm", | 601 "src/client/mac/crash_generation/ConfigFile.mm", |
| 601 "src/client/mac/handler/breakpad_nlist_64.cc", | 602 "src/client/mac/handler/breakpad_nlist_64.cc", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 | 638 |
| 638 include_dirs = [ | 639 include_dirs = [ |
| 639 "src", | 640 "src", |
| 640 "src/client/mac/Framework", | 641 "src/client/mac/Framework", |
| 641 "src/common/mac", | 642 "src/common/mac", |
| 642 ] | 643 ] |
| 643 } | 644 } |
| 644 | 645 |
| 645 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. | 646 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. |
| 646 } | 647 } |
| OLD | NEW |