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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 configs -= [ "//build/config/compiler:chromium_code" ] | 547 configs -= [ "//build/config/compiler:chromium_code" ] |
548 configs += [ "//build/config/compiler:no_chromium_code" ] | 548 configs += [ "//build/config/compiler:no_chromium_code" ] |
549 public_configs = [ ":client_config" ] | 549 public_configs = [ ":client_config" ] |
550 | 550 |
551 if (current_cpu == "arm" && is_chromeos) { | 551 if (current_cpu == "arm" && is_chromeos) { |
552 # Avoid running out of registers in | 552 # Avoid running out of registers in |
553 # linux_syscall_support.h:sys_clone()'s inline assembly. | 553 # linux_syscall_support.h:sys_clone()'s inline assembly. |
554 cflags = [ "-marm" ] | 554 cflags = [ "-marm" ] |
555 } | 555 } |
556 | 556 |
557 if (current_cpu == "x86" && is_clang) { | 557 # Clang's -mstackrealign doesn't work well with |
558 # Clang's -mstackrealign doesn't work well with | 558 # linux_syscall_support.h hand written asm syscalls. |
559 # linux_syscall_support.h hand written asm syscalls. | 559 # See https://crbug.com/556393 |
560 # See https://crbug.com/556393 | 560 configs -= [ "//build/config/compiler:clang_stackrealign" ] |
561 cflags -= [ "-mstackrealign" ] | |
562 } | |
563 | 561 |
564 if (is_android) { | 562 if (is_android) { |
565 sources += [ "src/common/android/breakpad_getcontext.S" ] | 563 sources += [ "src/common/android/breakpad_getcontext.S" ] |
566 } | 564 } |
567 | 565 |
568 libs = [ "dl" ] | 566 libs = [ "dl" ] |
569 | 567 |
570 include_dirs = [ | 568 include_dirs = [ |
571 ".", | 569 ".", |
572 "src", | 570 "src", |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 # See http://crbug.com/138571#c18 | 658 # See http://crbug.com/138571#c18 |
661 cflags = [ "-Wno-unused-value" ] | 659 cflags = [ "-Wno-unused-value" ] |
662 } | 660 } |
663 | 661 |
664 if (is_android) { | 662 if (is_android) { |
665 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] | 663 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] |
666 libs = [ "log" ] | 664 libs = [ "log" ] |
667 include_dirs += [ "src/common/android/include" ] | 665 include_dirs += [ "src/common/android/include" ] |
668 } | 666 } |
669 | 667 |
670 if (current_cpu == "x86" && is_clang) { | 668 # Clang's -mstackrealign doesn't work well with |
671 # Clang's -mstackrealign doesn't work well with | 669 # linux_syscall_support.h hand written asm syscalls. |
672 # linux_syscall_support.h hand written asm syscalls. | 670 # See https://crbug.com/556393 |
673 # See https://crbug.com/556393 | 671 configs -= [ "//build/config/compiler:clang_stackrealign" ] |
674 cflags -= [ "-mstackrealign" ] | |
675 } | |
676 } | 672 } |
677 | 673 |
678 executable("linux_dumper_unittest_helper") { | 674 executable("linux_dumper_unittest_helper") { |
679 set_sources_assignment_filter([]) | 675 set_sources_assignment_filter([]) |
680 testonly = true | 676 testonly = true |
681 sources = [ | 677 sources = [ |
682 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", | 678 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", |
683 ] | 679 ] |
684 deps = [ | 680 deps = [ |
685 ":processor_support", | 681 ":processor_support", |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 } | 875 } |
880 } | 876 } |
881 | 877 |
882 test_runner_script("breakpad_unittests__test_runner_script") { | 878 test_runner_script("breakpad_unittests__test_runner_script") { |
883 test_name = "breakpad_unittests" | 879 test_name = "breakpad_unittests" |
884 test_type = "gtest" | 880 test_type = "gtest" |
885 test_suite = "breakpad_unittests" | 881 test_suite = "breakpad_unittests" |
886 isolate_file = "breakpad_unittests.isolate" | 882 isolate_file = "breakpad_unittests.isolate" |
887 } | 883 } |
888 } | 884 } |
OLD | NEW |