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 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 # TODO(GYP): Make this link | 298 # TODO(GYP): Make this link |
299 #":crash_report_sender", | 299 #":crash_report_sender", |
300 ] | 300 ] |
301 } | 301 } |
302 | 302 |
303 group("client") { | 303 group("client") { |
304 direct_dependent_configs = [ ":client_config" ] | 304 direct_dependent_configs = [ ":client_config" ] |
305 } | 305 } |
306 } | 306 } |
307 | 307 |
308 if (is_linux || is_android) { | 308 if (is_linux) { |
309 executable("symupload") { | 309 executable("symupload") { |
310 sources = [ | 310 sources = [ |
311 "src/tools/linux/symupload/sym_upload.cc", | 311 "src/tools/linux/symupload/sym_upload.cc", |
312 "src/common/linux/http_upload.cc", | 312 "src/common/linux/http_upload.cc", |
313 "src/common/linux/http_upload.h", | 313 "src/common/linux/http_upload.h", |
314 ] | 314 ] |
315 | 315 |
316 include_dirs = [ | 316 include_dirs = [ |
317 "src", | 317 "src", |
318 "src/third_party", | 318 "src/third_party", |
319 ] | 319 ] |
320 | 320 |
321 configs += [ ":tools_config" ] | 321 configs += [ ":tools_config" ] |
322 | 322 |
323 libs = [ "dl" ] | 323 libs = [ "dl" ] |
324 } | 324 } |
325 } | 325 } |
326 | 326 |
327 if (is_linux) { | 327 if (is_linux || is_android) { |
328 if (current_toolchain == host_toolchain) { | 328 if (current_toolchain == host_toolchain) { |
329 # dump_syms is a host tool, so only compile it for the host system. | 329 # dump_syms is a host tool, so only compile it for the host system. |
330 executable("dump_syms") { | 330 executable("dump_syms") { |
331 sources = [ | 331 sources = [ |
332 "src/common/dwarf/bytereader.cc", | 332 "src/common/dwarf/bytereader.cc", |
333 "src/common/dwarf_cfi_to_module.cc", | 333 "src/common/dwarf_cfi_to_module.cc", |
334 "src/common/dwarf_cfi_to_module.h", | 334 "src/common/dwarf_cfi_to_module.h", |
335 "src/common/dwarf_cu_to_module.cc", | 335 "src/common/dwarf_cu_to_module.cc", |
336 "src/common/dwarf_cu_to_module.h", | 336 "src/common/dwarf_cu_to_module.h", |
337 "src/common/dwarf/dwarf2diehandler.cc", | 337 "src/common/dwarf/dwarf2diehandler.cc", |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 "src/processor/pathname_stripper.h", | 472 "src/processor/pathname_stripper.h", |
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 |
| 484 if (is_linux) { |
483 test("breakpad_unittests") { | 485 test("breakpad_unittests") { |
484 sources = [ | 486 sources = [ |
485 "linux/breakpad_googletest_includes.h", | 487 "linux/breakpad_googletest_includes.h", |
486 "src/client/linux/handler/exception_handler_unittest.cc", | 488 "src/client/linux/handler/exception_handler_unittest.cc", |
487 "src/client/linux/minidump_writer/cpu_set_unittest.cc", | 489 "src/client/linux/minidump_writer/cpu_set_unittest.cc", |
488 "src/client/linux/minidump_writer/directory_reader_unittest.cc", | 490 "src/client/linux/minidump_writer/directory_reader_unittest.cc", |
489 "src/client/linux/minidump_writer/line_reader_unittest.cc", | 491 "src/client/linux/minidump_writer/line_reader_unittest.cc", |
490 "src/client/linux/minidump_writer/linux_core_dumper_unittest.cc", | 492 "src/client/linux/minidump_writer/linux_core_dumper_unittest.cc", |
491 "src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc", | 493 "src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc", |
492 "src/client/linux/minidump_writer/minidump_writer_unittest.cc", | 494 "src/client/linux/minidump_writer/minidump_writer_unittest.cc", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 532 |
531 if (is_clang) { | 533 if (is_clang) { |
532 # See http://crbug.com/138571#c18 | 534 # See http://crbug.com/138571#c18 |
533 cflags = [ "-Wno-unused-value" ] | 535 cflags = [ "-Wno-unused-value" ] |
534 } | 536 } |
535 | 537 |
536 | 538 |
537 if (is_android) { | 539 if (is_android) { |
538 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] | 540 sources += [ "src/common/android/breakpad_getcontext_unittest.cc" ] |
539 libs = [ "log" ] | 541 libs = [ "log" ] |
540 include_dirs = [ "src/common/android/include" ] | 542 include_dirs += [ "src/common/android/include" ] |
541 } | 543 } |
542 } | 544 } |
543 | 545 |
544 executable("linux_dumper_unittest_helper") { | 546 executable("linux_dumper_unittest_helper") { |
545 testonly = true | 547 testonly = true |
546 sources = [ | 548 sources = [ |
547 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", | 549 "src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc", |
548 ] | 550 ] |
549 deps = [ | 551 deps = [ |
550 ":processor_support", | 552 ":processor_support", |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 "src/client/windows/handler/exception_handler.h", | 685 "src/client/windows/handler/exception_handler.h", |
684 "src/common/windows/guid_string.cc", | 686 "src/common/windows/guid_string.cc", |
685 "src/common/windows/guid_string.h", | 687 "src/common/windows/guid_string.h", |
686 "src/google_breakpad/common/minidump_format.h", | 688 "src/google_breakpad/common/minidump_format.h", |
687 "src/client/windows/crash_generation/minidump_generator.cc", | 689 "src/client/windows/crash_generation/minidump_generator.cc", |
688 "src/client/windows/crash_generation/minidump_generator.h", | 690 "src/client/windows/crash_generation/minidump_generator.h", |
689 "src/common/windows/string_utils-inl.h", | 691 "src/common/windows/string_utils-inl.h", |
690 ] | 692 ] |
691 } | 693 } |
692 } | 694 } |
OLD | NEW |