| 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 import("//build/symlink.gni") | 5 import("//build/symlink.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 10 } | 10 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 config("handler_config") { | 44 config("handler_config") { |
| 45 include_dirs = [ "src" ] | 45 include_dirs = [ "src" ] |
| 46 } | 46 } |
| 47 | 47 |
| 48 config("sender_config") { | 48 config("sender_config") { |
| 49 include_dirs = [ "src" ] | 49 include_dirs = [ "src" ] |
| 50 } | 50 } |
| 51 | 51 |
| 52 config("breakpad_unittest_config") { |
| 53 # One of the breakpad unit tests test that we can detect the proper build-id. |
| 54 # We must override the build-id for this one target. |
| 55 ldflags = [ "-Wl,--build-id=0x000102030405060708090a0b0c0d0e0f1011121314151617
18191a1b1c1d1e1f" ] |
| 56 } |
| 57 |
| 52 # {micro,mini}dump_stackwalk and minidump_dump are tool-type executables | 58 # {micro,mini}dump_stackwalk and minidump_dump are tool-type executables |
| 53 # that do not build on Windows. | 59 # that do not build on Windows. |
| 54 if (!is_win) { | 60 if (!is_win) { |
| 55 if (current_toolchain == host_toolchain) { | 61 if (current_toolchain == host_toolchain) { |
| 56 # Contains the code shared by both {micro,mini}dump_stackwalk. | 62 # Contains the code shared by both {micro,mini}dump_stackwalk. |
| 57 static_library("stackwalk_common") { | 63 static_library("stackwalk_common") { |
| 58 # Always want these files included regardless of platform. | 64 # Always want these files included regardless of platform. |
| 59 set_sources_assignment_filter([]) | 65 set_sources_assignment_filter([]) |
| 60 sources = [ | 66 sources = [ |
| 61 "src/processor/basic_code_module.h", | 67 "src/processor/basic_code_module.h", |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 public_configs = [ ":client_config" ] | 417 public_configs = [ ":client_config" ] |
| 412 } | 418 } |
| 413 } | 419 } |
| 414 | 420 |
| 415 if (is_linux || is_android) { | 421 if (is_linux || is_android) { |
| 416 if (current_toolchain == host_toolchain) { | 422 if (current_toolchain == host_toolchain) { |
| 417 executable("symupload") { | 423 executable("symupload") { |
| 418 sources = [ | 424 sources = [ |
| 419 "src/common/linux/http_upload.cc", | 425 "src/common/linux/http_upload.cc", |
| 420 "src/common/linux/http_upload.h", | 426 "src/common/linux/http_upload.h", |
| 427 "src/common/linux/symbol_upload.cc", |
| 428 "src/common/linux/symbol_upload.h", |
| 421 "src/tools/linux/symupload/sym_upload.cc", | 429 "src/tools/linux/symupload/sym_upload.cc", |
| 422 ] | 430 ] |
| 423 | 431 |
| 424 include_dirs = [ | 432 include_dirs = [ |
| 425 "src", | 433 "src", |
| 426 "src/third_party", | 434 "src/third_party", |
| 427 ] | 435 ] |
| 428 | 436 |
| 429 configs += [ ":tools_config" ] | 437 configs += [ ":tools_config" ] |
| 430 | 438 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] | 691 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] |
| 684 libs = [ "log" ] | 692 libs = [ "log" ] |
| 685 include_dirs += [ "src/common/android/include" ] | 693 include_dirs += [ "src/common/android/include" ] |
| 686 extra_dist_files = [ "$root_out_dir/linux_dumper_unittest_helper" ] | 694 extra_dist_files = [ "$root_out_dir/linux_dumper_unittest_helper" ] |
| 687 } | 695 } |
| 688 | 696 |
| 689 # Clang's -mstackrealign doesn't work well with | 697 # Clang's -mstackrealign doesn't work well with |
| 690 # linux_syscall_support.h hand written asm syscalls. | 698 # linux_syscall_support.h hand written asm syscalls. |
| 691 # See https://crbug.com/556393 | 699 # See https://crbug.com/556393 |
| 692 configs -= [ "//build/config/compiler:clang_stackrealign" ] | 700 configs -= [ "//build/config/compiler:clang_stackrealign" ] |
| 701 |
| 702 # Add the breakpad unittest config at the end to override all configs. |
| 703 configs += [ ":breakpad_unittest_config" ] |
| 693 } | 704 } |
| 694 | 705 |
| 695 executable("linux_dumper_unittest_helper") { | 706 executable("linux_dumper_unittest_helper") { |
| 696 set_sources_assignment_filter([]) | 707 set_sources_assignment_filter([]) |
| 697 testonly = true | 708 testonly = true |
| 698 sources = [ | 709 sources = [ |
| 699 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", | 710 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", |
| 700 ] | 711 ] |
| 701 deps = [ | 712 deps = [ |
| 702 ":processor_support", | 713 ":processor_support", |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 | 895 |
| 885 if (is_android) { | 896 if (is_android) { |
| 886 # TODO(GYP) Delete this after we've converted everything to GN. | 897 # TODO(GYP) Delete this after we've converted everything to GN. |
| 887 group("breakpad_unittests_deps") { | 898 group("breakpad_unittests_deps") { |
| 888 testonly = true | 899 testonly = true |
| 889 deps = [ | 900 deps = [ |
| 890 ":breakpad_unittests", | 901 ":breakpad_unittests", |
| 891 ] | 902 ] |
| 892 } | 903 } |
| 893 } | 904 } |
| OLD | NEW |