Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: breakpad/BUILD.gn

Issue 551933002: Mark gtest and gmock as testonly in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testonly
Patch Set: android Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/test/BUILD.gn ('k') | build/secondary/testing/gmock/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 ] 473 ]
474 474
475 include_dirs = [ 475 include_dirs = [
476 "src", 476 "src",
477 "src/client", 477 "src/client",
478 "src/third_party/linux/include", 478 "src/third_party/linux/include",
479 ".", 479 ".",
480 ] 480 ]
481 } 481 }
482 482
483 executable("breakpad_unittests") { 483 test("breakpad_unittests") {
484 sources = [ 484 sources = [
485 "linux/breakpad_googletest_includes.h", 485 "linux/breakpad_googletest_includes.h",
486 "src/client/linux/handler/exception_handler_unittest.cc", 486 "src/client/linux/handler/exception_handler_unittest.cc",
487 "src/client/linux/minidump_writer/cpu_set_unittest.cc", 487 "src/client/linux/minidump_writer/cpu_set_unittest.cc",
488 "src/client/linux/minidump_writer/directory_reader_unittest.cc", 488 "src/client/linux/minidump_writer/directory_reader_unittest.cc",
489 "src/client/linux/minidump_writer/line_reader_unittest.cc", 489 "src/client/linux/minidump_writer/line_reader_unittest.cc",
490 "src/client/linux/minidump_writer/linux_core_dumper_unittest.cc", 490 "src/client/linux/minidump_writer/linux_core_dumper_unittest.cc",
491 "src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc", 491 "src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc",
492 "src/client/linux/minidump_writer/minidump_writer_unittest.cc", 492 "src/client/linux/minidump_writer/minidump_writer_unittest.cc",
493 "src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc", 493 "src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 536
537 if (is_android) { 537 if (is_android) {
538 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] 538 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ]
539 libs = [ "log" ] 539 libs = [ "log" ]
540 include_dirs = [ "src/common/android/include" ] 540 include_dirs = [ "src/common/android/include" ]
541 } 541 }
542 } 542 }
543 543
544 executable("linux_dumper_unittest_helper") { 544 executable("linux_dumper_unittest_helper") {
545 testonly = true
545 sources = [ 546 sources = [
546 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", 547 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc",
547 ] 548 ]
548 deps = [ 549 deps = [
549 ":processor_support", 550 ":processor_support",
550 ] 551 ]
551 552
552 include_dirs = [ 553 include_dirs = [
553 "src", 554 "src",
554 ] 555 ]
555 556
556 if (cpu_arch == "mipsel" && is_android) { 557 if (cpu_arch == "mipsel" && is_android) {
557 include_dirs += [ "src/common/android/include" ] 558 include_dirs += [ "src/common/android/include" ]
558 } 559 }
559 } 560 }
560 561
561 562
562 executable("generate_test_dump") { 563 executable("generate_test_dump") {
564 testonly = true
563 sources = [ 565 sources = [
564 "linux/generate-test-dump.cc", 566 "linux/generate-test-dump.cc",
565 ] 567 ]
566 568
567 # This file has an unused variable warning. 569 # This file has an unused variable warning.
568 configs -= [ "//build/config/compiler:chromium_code" ] 570 configs -= [ "//build/config/compiler:chromium_code" ]
569 configs += [ "//build/config/compiler:no_chromium_code" ] 571 configs += [ "//build/config/compiler:no_chromium_code" ]
570 572
571 deps = [ ":client" ] 573 deps = [ ":client" ]
572 574
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 "src/client/windows/handler/exception_handler.h", 683 "src/client/windows/handler/exception_handler.h",
682 "src/common/windows/guid_string.cc", 684 "src/common/windows/guid_string.cc",
683 "src/common/windows/guid_string.h", 685 "src/common/windows/guid_string.h",
684 "src/google_breakpad/common/minidump_format.h", 686 "src/google_breakpad/common/minidump_format.h",
685 "src/client/windows/crash_generation/minidump_generator.cc", 687 "src/client/windows/crash_generation/minidump_generator.cc",
686 "src/client/windows/crash_generation/minidump_generator.h", 688 "src/client/windows/crash_generation/minidump_generator.h",
687 "src/common/windows/string_utils-inl.h", 689 "src/common/windows/string_utils-inl.h",
688 ] 690 ]
689 } 691 }
690 } 692 }
OLDNEW
« no previous file with comments | « base/test/BUILD.gn ('k') | build/secondary/testing/gmock/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698