| 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 19 matching lines...) Expand all Loading... |
| 30 defines += [ "DEBUG" ] | 30 defines += [ "DEBUG" ] |
| 31 } | 31 } |
| 32 if (is_android) { | 32 if (is_android) { |
| 33 defines += [ "__ANDROID__" ] | 33 defines += [ "__ANDROID__" ] |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 | 36 |
| 37 config("client_config") { | 37 config("client_config") { |
| 38 include_dirs = [ "src" ] | 38 include_dirs = [ "src" ] |
| 39 if (is_android) { | 39 if (is_android) { |
| 40 defines = [ "ANDROID_NDK_MAJOR_VERSION=${android_ndk_major_version}" ] |
| 40 include_dirs += [ "src/common/android/include" ] | 41 include_dirs += [ "src/common/android/include" ] |
| 41 } | 42 } |
| 42 } | 43 } |
| 43 | 44 |
| 44 config("handler_config") { | 45 config("handler_config") { |
| 45 include_dirs = [ "src" ] | 46 include_dirs = [ "src" ] |
| 46 } | 47 } |
| 47 | 48 |
| 48 config("sender_config") { | 49 config("sender_config") { |
| 49 include_dirs = [ "src" ] | 50 include_dirs = [ "src" ] |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 ":linux_dumper_unittest_helper", | 671 ":linux_dumper_unittest_helper", |
| 671 ":processor_support", | 672 ":processor_support", |
| 672 "//build/config/sanitizers:deps", | 673 "//build/config/sanitizers:deps", |
| 673 "//testing/gmock", | 674 "//testing/gmock", |
| 674 "//testing/gtest", | 675 "//testing/gtest", |
| 675 "//testing/gtest:gtest_main", | 676 "//testing/gtest:gtest_main", |
| 676 ] | 677 ] |
| 677 | 678 |
| 678 include_dirs = [ | 679 include_dirs = [ |
| 679 "linux", # Use our copy of breakpad_googletest_includes.h | 680 "linux", # Use our copy of breakpad_googletest_includes.h |
| 680 "src", | |
| 681 ".", | 681 ".", |
| 682 ] | 682 ] |
| 683 | 683 |
| 684 # There are some warnings in this code. | 684 # There are some warnings in this code. |
| 685 configs -= [ "//build/config/compiler:chromium_code" ] | 685 configs -= [ "//build/config/compiler:chromium_code" ] |
| 686 configs += [ "//build/config/compiler:no_chromium_code" ] | 686 configs += [ |
| 687 ":client_config", |
| 688 "//build/config/compiler:no_chromium_code", |
| 689 ] |
| 687 | 690 |
| 688 if (is_clang) { | 691 if (is_clang) { |
| 689 # See http://crbug.com/138571#c18 | 692 # See http://crbug.com/138571#c18 |
| 690 cflags = [ "-Wno-unused-value" ] | 693 cflags = [ "-Wno-unused-value" ] |
| 691 } | 694 } |
| 692 | 695 |
| 693 if (is_android) { | 696 if (is_android) { |
| 694 use_raw_android_executable = true | 697 use_raw_android_executable = true |
| 695 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] | 698 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] |
| 696 libs = [ "log" ] | 699 libs = [ "log" ] |
| 697 include_dirs += [ "src/common/android/include" ] | |
| 698 extra_dist_files = [ "$root_out_dir/linux_dumper_unittest_helper" ] | 700 extra_dist_files = [ "$root_out_dir/linux_dumper_unittest_helper" ] |
| 699 } | 701 } |
| 700 | 702 |
| 701 # Clang's -mstackrealign doesn't work well with | 703 # Clang's -mstackrealign doesn't work well with |
| 702 # linux_syscall_support.h hand written asm syscalls. | 704 # linux_syscall_support.h hand written asm syscalls. |
| 703 # See https://crbug.com/556393 | 705 # See https://crbug.com/556393 |
| 704 configs -= [ "//build/config/compiler:clang_stackrealign" ] | 706 configs -= [ "//build/config/compiler:clang_stackrealign" ] |
| 705 | 707 |
| 706 # Add the breakpad unittest config at the end to override all configs. | 708 # Add the breakpad unittest config at the end to override all configs. |
| 707 configs += [ ":breakpad_unittest_config" ] | 709 configs += [ ":breakpad_unittest_config" ] |
| 708 } | 710 } |
| 709 | 711 |
| 710 executable("linux_dumper_unittest_helper") { | 712 executable("linux_dumper_unittest_helper") { |
| 711 set_sources_assignment_filter([]) | 713 set_sources_assignment_filter([]) |
| 712 testonly = true | 714 testonly = true |
| 713 sources = [ | 715 sources = [ |
| 714 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", | 716 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", |
| 715 ] | 717 ] |
| 716 deps = [ | 718 deps = [ |
| 717 ":processor_support", | 719 ":processor_support", |
| 718 "//build/config/sanitizers:deps", | 720 "//build/config/sanitizers:deps", |
| 719 ] | 721 ] |
| 720 | 722 |
| 721 include_dirs = [ "src" ] | 723 configs += [ ":client_config" ] |
| 722 | |
| 723 if (current_cpu == "mipsel" && is_android) { | |
| 724 include_dirs += [ "src/common/android/include" ] | |
| 725 } | |
| 726 } | 724 } |
| 727 | 725 |
| 728 executable("generate_test_dump") { | 726 executable("generate_test_dump") { |
| 729 set_sources_assignment_filter([]) | 727 set_sources_assignment_filter([]) |
| 730 testonly = true | 728 testonly = true |
| 731 sources = [ | 729 sources = [ |
| 732 "linux/generate-test-dump.cc", | 730 "linux/generate-test-dump.cc", |
| 733 ] | 731 ] |
| 734 | 732 |
| 735 # This file has an unused variable warning. | 733 # This file has an unused variable warning. |
| 736 configs -= [ "//build/config/compiler:chromium_code" ] | 734 configs -= [ "//build/config/compiler:chromium_code" ] |
| 737 configs += [ "//build/config/compiler:no_chromium_code" ] | 735 configs += [ |
| 736 ":client_config", |
| 737 "//build/config/compiler:no_chromium_code", |
| 738 ] |
| 738 | 739 |
| 739 deps = [ | 740 deps = [ |
| 740 ":client", | 741 ":client", |
| 741 "//build/config/sanitizers:deps", | 742 "//build/config/sanitizers:deps", |
| 742 ] | 743 ] |
| 743 | 744 |
| 744 include_dirs = [ "src" ] | |
| 745 | |
| 746 if (is_android) { | 745 if (is_android) { |
| 747 libs = [ "log" ] | 746 libs = [ "log" ] |
| 748 include_dirs += [ "src/common/android/include" ] | |
| 749 } | 747 } |
| 750 } | 748 } |
| 751 | 749 |
| 752 executable("minidump-2-core") { | 750 executable("minidump-2-core") { |
| 753 set_sources_assignment_filter([]) | 751 set_sources_assignment_filter([]) |
| 754 sources = [ | 752 sources = [ |
| 755 "src/tools/linux/md2core/minidump-2-core.cc", | 753 "src/tools/linux/md2core/minidump-2-core.cc", |
| 756 ] | 754 ] |
| 757 | 755 |
| 758 include_dirs = [ "src" ] | 756 include_dirs = [ "src" ] |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 | 895 |
| 898 if (is_android) { | 896 if (is_android) { |
| 899 # TODO(GYP_GONE) Delete this after we've converted everything to GN. | 897 # TODO(GYP_GONE) Delete this after we've converted everything to GN. |
| 900 group("breakpad_unittests_deps") { | 898 group("breakpad_unittests_deps") { |
| 901 testonly = true | 899 testonly = true |
| 902 deps = [ | 900 deps = [ |
| 903 ":breakpad_unittests", | 901 ":breakpad_unittests", |
| 904 ] | 902 ] |
| 905 } | 903 } |
| 906 } | 904 } |
| OLD | NEW |