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 # This file was forked from breakpad/BUILD.gn in chromium. | 5 # This file was forked from breakpad/BUILD.gn in chromium. |
6 | 6 |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 config("tools_config") { | 9 config("tools_config") { |
10 include_dirs = [ | 10 include_dirs = [ |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 "src/client/mac/handler/protected_memory_allocator.cc", | 351 "src/client/mac/handler/protected_memory_allocator.cc", |
352 ] | 352 ] |
353 | 353 |
354 configs += [ ":internal_config" ] | 354 configs += [ ":internal_config" ] |
355 public_configs = [ ":breakpad_config" ] | 355 public_configs = [ ":breakpad_config" ] |
356 | 356 |
357 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] | 357 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] |
358 include_dirs = [ "src/client/apple/Framework" ] | 358 include_dirs = [ "src/client/apple/Framework" ] |
359 | 359 |
360 deps = [ | 360 deps = [ |
361 ":utilities", | |
362 ":crash_inspector", | 361 ":crash_inspector", |
363 ":crash_report_sender", | 362 ":crash_report_sender", |
| 363 ":utilities", |
364 ] | 364 ] |
365 } | 365 } |
366 | 366 |
367 group("client") { | 367 group("client") { |
368 public_configs = [ ":client_config" ] | 368 public_configs = [ ":client_config" ] |
369 } | 369 } |
370 } | 370 } |
371 | 371 |
372 if (is_linux) { | 372 if (is_linux) { |
373 executable("symupload") { | 373 executable("symupload") { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 "src/common/simple_string_dictionary.cc", | 508 "src/common/simple_string_dictionary.cc", |
509 "src/common/simple_string_dictionary.h", | 509 "src/common/simple_string_dictionary.h", |
510 "src/common/string_conversion.cc", | 510 "src/common/string_conversion.cc", |
511 "src/common/string_conversion.h", | 511 "src/common/string_conversion.h", |
512 ] | 512 ] |
513 | 513 |
514 configs -= [ "//build/config/compiler:chromium_code" ] | 514 configs -= [ "//build/config/compiler:chromium_code" ] |
515 configs += [ "//build/config/compiler:no_chromium_code" ] | 515 configs += [ "//build/config/compiler:no_chromium_code" ] |
516 public_configs = [ ":client_config" ] | 516 public_configs = [ ":client_config" ] |
517 | 517 |
518 if (current_cpu == "arm" && is_chromeos) { | |
519 # Avoid running out of registers in | |
520 # linux_syscall_support.h:sys_clone()'s inline assembly. | |
521 cflags = [ "-marm" ] | |
522 } | |
523 | |
524 if (is_android) { | 518 if (is_android) { |
525 sources += [ "src/common/android/breakpad_getcontext.S" ] | 519 sources += [ "src/common/android/breakpad_getcontext.S" ] |
526 } | 520 } |
527 | 521 |
528 libs = [ "dl" ] | 522 libs = [ "dl" ] |
529 | 523 |
530 include_dirs = [ | 524 include_dirs = [ |
531 ".", | 525 ".", |
532 "src", | 526 "src", |
533 "src/client", | 527 "src/client", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 "src/common/simple_string_dictionary_unittest.cc", | 581 "src/common/simple_string_dictionary_unittest.cc", |
588 "src/common/test_assembler.cc", | 582 "src/common/test_assembler.cc", |
589 "src/common/tests/file_utils.cc", | 583 "src/common/tests/file_utils.cc", |
590 "src/common/tests/file_utils.h", | 584 "src/common/tests/file_utils.h", |
591 "src/tools/linux/md2core/minidump_memory_range.h", | 585 "src/tools/linux/md2core/minidump_memory_range.h", |
592 "src/tools/linux/md2core/minidump_memory_range_unittest.cc", | 586 "src/tools/linux/md2core/minidump_memory_range_unittest.cc", |
593 ] | 587 ] |
594 | 588 |
595 deps = [ | 589 deps = [ |
596 ":client", | 590 ":client", |
| 591 ":linux_dumper_unittest_helper", |
597 ":processor_support", | 592 ":processor_support", |
598 ":linux_dumper_unittest_helper", | 593 "//testing/gmock", |
599 "//testing/gtest", | 594 "//testing/gtest", |
600 "//testing/gtest:gtest_main", | 595 "//testing/gtest:gtest_main", |
601 "//testing/gmock", | |
602 ] | 596 ] |
603 | 597 |
604 include_dirs = [ | 598 include_dirs = [ |
605 "linux", # Use our copy of breakpad_googletest_includes.h | 599 "linux", # Use our copy of breakpad_googletest_includes.h |
606 "src", | 600 "src", |
607 ".", | 601 ".", |
608 ] | 602 ] |
609 | 603 |
610 # There are some warnings in this code. | 604 # There are some warnings in this code. |
611 configs -= [ "//build/config/compiler:chromium_code" ] | 605 configs -= [ "//build/config/compiler:chromium_code" ] |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 sources = [ | 781 sources = [ |
788 "src/client/windows/sender/crash_report_sender.cc", | 782 "src/client/windows/sender/crash_report_sender.cc", |
789 "src/client/windows/sender/crash_report_sender.h", | 783 "src/client/windows/sender/crash_report_sender.h", |
790 "src/common/windows/http_upload.cc", | 784 "src/common/windows/http_upload.cc", |
791 "src/common/windows/http_upload.h", | 785 "src/common/windows/http_upload.h", |
792 ] | 786 ] |
793 configs += [ ":sender_config" ] | 787 configs += [ ":sender_config" ] |
794 public_configs = [ ":sender_config" ] | 788 public_configs = [ ":sender_config" ] |
795 } | 789 } |
796 } | 790 } |
OLD | NEW |