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

Side by Side Diff: breakpad/BUILD.gn

Issue 2892493002: Replace sanitizers:deps with exe_and_shlib_deps (Chromium repo only) (Closed)
Patch Set: Fix find/replace error in nacl Created 3 years, 7 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') | chrome/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 import("//build/symlink.gni") 5 import("//build/symlink.gni")
6 import("//testing/libfuzzer/fuzzer_test.gni") 6 import("//testing/libfuzzer/fuzzer_test.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 executable("microdump_stackwalk") { 189 executable("microdump_stackwalk") {
190 sources = [ 190 sources = [
191 "src/processor/microdump.cc", 191 "src/processor/microdump.cc",
192 "src/processor/microdump_processor.cc", 192 "src/processor/microdump_processor.cc",
193 "src/processor/microdump_stackwalk.cc", 193 "src/processor/microdump_stackwalk.cc",
194 ] 194 ]
195 195
196 deps = [ 196 deps = [
197 ":stackwalk_common", 197 ":stackwalk_common",
198 "//build/config/sanitizers:deps", 198 "//build/config:exe_and_shlib_deps",
199 ] 199 ]
200 200
201 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] 201 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
202 202
203 configs -= [ "//build/config/compiler:chromium_code" ] 203 configs -= [ "//build/config/compiler:chromium_code" ]
204 configs += [ "//build/config/compiler:no_chromium_code" ] 204 configs += [ "//build/config/compiler:no_chromium_code" ]
205 configs += [ ":tools_config" ] 205 configs += [ ":tools_config" ]
206 } 206 }
207 207
208 executable("minidump_stackwalk") { 208 executable("minidump_stackwalk") {
209 sources = [ 209 sources = [
210 "src/processor/exploitability.cc", 210 "src/processor/exploitability.cc",
211 "src/processor/minidump.cc", 211 "src/processor/minidump.cc",
212 "src/processor/minidump_processor.cc", 212 "src/processor/minidump_processor.cc",
213 "src/processor/minidump_stackwalk.cc", 213 "src/processor/minidump_stackwalk.cc",
214 ] 214 ]
215 215
216 deps = [ 216 deps = [
217 ":stackwalk_common", 217 ":stackwalk_common",
218 "//build/config/sanitizers:deps", 218 "//build/config:exe_and_shlib_deps",
219 ] 219 ]
220 220
221 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] 221 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
222 222
223 configs -= [ "//build/config/compiler:chromium_code" ] 223 configs -= [ "//build/config/compiler:chromium_code" ]
224 configs += [ "//build/config/compiler:no_chromium_code" ] 224 configs += [ "//build/config/compiler:no_chromium_code" ]
225 configs += [ ":tools_config" ] 225 configs += [ ":tools_config" ]
226 226
227 # Always want these files included regardless of platform. 227 # Always want these files included regardless of platform.
228 set_sources_assignment_filter([]) 228 set_sources_assignment_filter([])
(...skipping 24 matching lines...) Expand all
253 "src/processor/proc_maps_linux.cc", 253 "src/processor/proc_maps_linux.cc",
254 ] 254 ]
255 255
256 configs += [ ":tools_config" ] 256 configs += [ ":tools_config" ]
257 257
258 # There are some warnings in this code. 258 # There are some warnings in this code.
259 configs -= [ "//build/config/compiler:chromium_code" ] 259 configs -= [ "//build/config/compiler:chromium_code" ]
260 configs += [ "//build/config/compiler:no_chromium_code" ] 260 configs += [ "//build/config/compiler:no_chromium_code" ]
261 261
262 deps = [ 262 deps = [
263 "//build/config/sanitizers:deps", 263 "//build/config:exe_and_shlib_deps",
264 ] 264 ]
265 } 265 }
266 } else { 266 } else {
267 # Aliases for convenience. 267 # Aliases for convenience.
268 binary_symlink("microdump_stackwalk") { 268 binary_symlink("microdump_stackwalk") {
269 binary_label = ":$target_name($host_toolchain)" 269 binary_label = ":$target_name($host_toolchain)"
270 } 270 }
271 binary_symlink("minidump_stackwalk") { 271 binary_symlink("minidump_stackwalk") {
272 binary_label = ":$target_name($host_toolchain)" 272 binary_label = ":$target_name($host_toolchain)"
273 } 273 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 if (!is_debug) { 333 if (!is_debug) {
334 # dump_syms crashes when built at -O1, -O2, and -O3. It does 334 # dump_syms crashes when built at -O1, -O2, and -O3. It does
335 # not crash at -Os. To play it safe, dump_syms is always built 335 # not crash at -Os. To play it safe, dump_syms is always built
336 # at -O0 until this can be sorted out. 336 # at -O0 until this can be sorted out.
337 # http://code.google.com/p/google-breakpad/issues/detail?id=329 337 # http://code.google.com/p/google-breakpad/issues/detail?id=329
338 configs -= [ "//build/config/compiler:default_optimization" ] 338 configs -= [ "//build/config/compiler:default_optimization" ]
339 cflags += [ "-O0" ] 339 cflags += [ "-O0" ]
340 } 340 }
341 341
342 deps = [ 342 deps = [
343 "//build/config/sanitizers:deps", 343 "//build/config:exe_and_shlib_deps",
344 ] 344 ]
345 } 345 }
346 346
347 executable("symupload") { 347 executable("symupload") {
348 sources = [ 348 sources = [
349 "src/common/mac/HTTPMultipartUpload.m", 349 "src/common/mac/HTTPMultipartUpload.m",
350 "src/tools/mac/symupload/symupload.m", 350 "src/tools/mac/symupload/symupload.m",
351 ] 351 ]
352 352
353 include_dirs = [ "src/common/mac" ] 353 include_dirs = [ "src/common/mac" ]
354 354
355 libs = [ "Foundation.framework" ] 355 libs = [ "Foundation.framework" ]
356 356
357 configs -= [ "//build/config/compiler:chromium_code" ] 357 configs -= [ "//build/config/compiler:chromium_code" ]
358 configs += [ "//build/config/compiler:no_chromium_code" ] 358 configs += [ "//build/config/compiler:no_chromium_code" ]
359 359
360 deps = [ 360 deps = [
361 "//build/config/sanitizers:deps", 361 "//build/config:exe_and_shlib_deps",
362 ] 362 ]
363 } 363 }
364 } else { 364 } else {
365 binary_symlink("dump_syms") { 365 binary_symlink("dump_syms") {
366 binary_label = ":$target_name($host_toolchain)" 366 binary_label = ":$target_name($host_toolchain)"
367 } 367 }
368 binary_symlink("symupload") { 368 binary_symlink("symupload") {
369 binary_label = ":$target_name($host_toolchain)" 369 binary_label = ":$target_name($host_toolchain)"
370 } 370 }
371 } 371 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 "src/common/mac", 423 "src/common/mac",
424 "src", 424 "src",
425 ] 425 ]
426 libs = [ 426 libs = [
427 "CoreServices.framework", 427 "CoreServices.framework",
428 "Foundation.framework", 428 "Foundation.framework",
429 ] 429 ]
430 430
431 deps = [ 431 deps = [
432 ":utilities", 432 ":utilities",
433 "//build/config/sanitizers:deps", 433 "//build/config:exe_and_shlib_deps",
434 ] 434 ]
435 } 435 }
436 436
437 # TODO(GYP) this target has some mac_bundle_resources stuff. 437 # TODO(GYP) this target has some mac_bundle_resources stuff.
438 # executable("crash_report_sender") { 438 # executable("crash_report_sender") {
439 # } 439 # }
440 group("crash_report_sender") { 440 group("crash_report_sender") {
441 } 441 }
442 442
443 config("breakpad_config") { 443 config("breakpad_config") {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 include_dirs = [ 486 include_dirs = [
487 "src", 487 "src",
488 "src/third_party", 488 "src/third_party",
489 ] 489 ]
490 490
491 configs += [ ":tools_config" ] 491 configs += [ ":tools_config" ]
492 492
493 libs = [ "dl" ] 493 libs = [ "dl" ]
494 494
495 deps = [ 495 deps = [
496 "//build/config/sanitizers:deps", 496 "//build/config:exe_and_shlib_deps",
497 ] 497 ]
498 } 498 }
499 499
500 # dump_syms is a host tool, so only compile it for the host system. 500 # dump_syms is a host tool, so only compile it for the host system.
501 executable("dump_syms") { 501 executable("dump_syms") {
502 sources = [ 502 sources = [
503 "src/common/dwarf/bytereader.cc", 503 "src/common/dwarf/bytereader.cc",
504 "src/common/dwarf/dwarf2diehandler.cc", 504 "src/common/dwarf/dwarf2diehandler.cc",
505 "src/common/dwarf/dwarf2reader.cc", 505 "src/common/dwarf/dwarf2reader.cc",
506 "src/common/dwarf/elf_reader.cc", 506 "src/common/dwarf/elf_reader.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 configs += [ "//build/config/compiler:rtti" ] 549 configs += [ "//build/config/compiler:rtti" ]
550 550
551 # Breakpad rev 583 introduced this flag. 551 # Breakpad rev 583 introduced this flag.
552 # Using this define, stabs_reader.h will include a.out.h to 552 # Using this define, stabs_reader.h will include a.out.h to
553 # build on Linux. 553 # build on Linux.
554 defines = [ "HAVE_A_OUT_H" ] 554 defines = [ "HAVE_A_OUT_H" ]
555 555
556 include_dirs = [ "src" ] 556 include_dirs = [ "src" ]
557 557
558 deps = [ 558 deps = [
559 "//build/config/sanitizers:deps", 559 "//build/config:exe_and_shlib_deps",
560 ] 560 ]
561 } 561 }
562 } else { 562 } else {
563 # Aliases for convenience. 563 # Aliases for convenience.
564 binary_symlink("dump_syms") { 564 binary_symlink("dump_syms") {
565 binary_label = ":dump_syms($host_toolchain)" 565 binary_label = ":dump_syms($host_toolchain)"
566 } 566 }
567 binary_symlink("symupload") { 567 binary_symlink("symupload") {
568 binary_label = ":symupload($host_toolchain)" 568 binary_label = ":symupload($host_toolchain)"
569 } 569 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 "src/common/tests/file_utils.cc", 714 "src/common/tests/file_utils.cc",
715 "src/common/tests/file_utils.h", 715 "src/common/tests/file_utils.h",
716 "src/tools/linux/md2core/minidump_memory_range.h", 716 "src/tools/linux/md2core/minidump_memory_range.h",
717 "src/tools/linux/md2core/minidump_memory_range_unittest.cc", 717 "src/tools/linux/md2core/minidump_memory_range_unittest.cc",
718 ] 718 ]
719 719
720 deps = [ 720 deps = [
721 ":client", 721 ":client",
722 ":linux_dumper_unittest_helper", 722 ":linux_dumper_unittest_helper",
723 ":processor_support", 723 ":processor_support",
724 "//build/config/sanitizers:deps", 724 "//build/config:exe_and_shlib_deps",
725 "//testing/gmock", 725 "//testing/gmock",
726 "//testing/gtest", 726 "//testing/gtest",
727 "//testing/gtest:gtest_main", 727 "//testing/gtest:gtest_main",
728 ] 728 ]
729 729
730 include_dirs = [ 730 include_dirs = [
731 "linux", # Use our copy of breakpad_googletest_includes.h 731 "linux", # Use our copy of breakpad_googletest_includes.h
732 ".", 732 ".",
733 ] 733 ]
734 734
(...skipping 26 matching lines...) Expand all
761 } 761 }
762 762
763 executable("linux_dumper_unittest_helper") { 763 executable("linux_dumper_unittest_helper") {
764 set_sources_assignment_filter([]) 764 set_sources_assignment_filter([])
765 testonly = true 765 testonly = true
766 sources = [ 766 sources = [
767 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", 767 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc",
768 ] 768 ]
769 deps = [ 769 deps = [
770 ":processor_support", 770 ":processor_support",
771 "//build/config/sanitizers:deps", 771 "//build/config:exe_and_shlib_deps",
772 ] 772 ]
773 773
774 configs += [ ":client_config" ] 774 configs += [ ":client_config" ]
775 } 775 }
776 776
777 executable("generate_test_dump") { 777 executable("generate_test_dump") {
778 set_sources_assignment_filter([]) 778 set_sources_assignment_filter([])
779 testonly = true 779 testonly = true
780 sources = [ 780 sources = [
781 "linux/generate-test-dump.cc", 781 "linux/generate-test-dump.cc",
782 ] 782 ]
783 783
784 # This file has an unused variable warning. 784 # This file has an unused variable warning.
785 configs -= [ "//build/config/compiler:chromium_code" ] 785 configs -= [ "//build/config/compiler:chromium_code" ]
786 configs += [ 786 configs += [
787 ":client_config", 787 ":client_config",
788 "//build/config/compiler:no_chromium_code", 788 "//build/config/compiler:no_chromium_code",
789 ] 789 ]
790 790
791 deps = [ 791 deps = [
792 ":client", 792 ":client",
793 "//build/config/sanitizers:deps", 793 "//build/config:exe_and_shlib_deps",
794 ] 794 ]
795 795
796 if (is_android) { 796 if (is_android) {
797 libs = [ "log" ] 797 libs = [ "log" ]
798 } 798 }
799 } 799 }
800 800
801 executable("minidump-2-core") { 801 executable("minidump-2-core") {
802 set_sources_assignment_filter([]) 802 set_sources_assignment_filter([])
803 sources = [ 803 sources = [
804 "src/tools/linux/md2core/minidump-2-core.cc", 804 "src/tools/linux/md2core/minidump-2-core.cc",
805 ] 805 ]
806 806
807 include_dirs = [ "src" ] 807 include_dirs = [ "src" ]
808 808
809 deps = [ 809 deps = [
810 ":client", 810 ":client",
811 "//build/config/sanitizers:deps", 811 "//build/config:exe_and_shlib_deps",
812 ] 812 ]
813 } 813 }
814 814
815 executable("core-2-minidump") { 815 executable("core-2-minidump") {
816 set_sources_assignment_filter([]) 816 set_sources_assignment_filter([])
817 sources = [ 817 sources = [
818 "src/tools/linux/core2md/core2md.cc", 818 "src/tools/linux/core2md/core2md.cc",
819 ] 819 ]
820 820
821 deps = [ 821 deps = [
822 ":client", 822 ":client",
823 "//build/config/sanitizers:deps", 823 "//build/config:exe_and_shlib_deps",
824 ] 824 ]
825 825
826 include_dirs = [ "src" ] 826 include_dirs = [ "src" ]
827 } 827 }
828 } 828 }
829 829
830 if (is_win) { 830 if (is_win) {
831 executable("dump_syms") { 831 executable("dump_syms") {
832 # TODO(scottmg) using this with VS2015 may break the crash server. 832 # TODO(scottmg) using this with VS2015 may break the crash server.
833 # https://crbug.com/696671 833 # https://crbug.com/696671
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 sources = [ 978 sources = [
979 "src/client/windows/sender/crash_report_sender.cc", 979 "src/client/windows/sender/crash_report_sender.cc",
980 "src/client/windows/sender/crash_report_sender.h", 980 "src/client/windows/sender/crash_report_sender.h",
981 "src/common/windows/http_upload.cc", 981 "src/common/windows/http_upload.cc",
982 "src/common/windows/http_upload.h", 982 "src/common/windows/http_upload.h",
983 ] 983 ]
984 configs += [ ":sender_config" ] 984 configs += [ ":sender_config" ]
985 public_configs = [ ":sender_config" ] 985 public_configs = [ ":sender_config" ]
986 } 986 }
987 } 987 }
OLDNEW
« no previous file with comments | « base/test/BUILD.gn ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698