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

Side by Side Diff: breakpad/BUILD.gn

Issue 960413003: Apply gn format with 'sources' sorting to src/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-format-sort-2
Patch Set: . Created 5 years, 9 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
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("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 config("tools_config") { 7 config("tools_config") {
8 include_dirs = [ 8 include_dirs = [
9 "src", 9 "src",
10 "src/third_party", 10 "src/third_party",
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 if (current_toolchain == host_toolchain && is_mac) { 204 if (current_toolchain == host_toolchain && is_mac) {
205 # TODO(GYP) This should be only 64-bit on Mac. From .gypi: 205 # TODO(GYP) This should be only 64-bit on Mac. From .gypi:
206 # Like ld, dump_syms needs to operate on enough data that it may 206 # Like ld, dump_syms needs to operate on enough data that it may
207 # actually need to be able to address more than 4GB. Use x86_64. 207 # actually need to be able to address more than 4GB. Use x86_64.
208 # Don't worry! An x86_64 dump_syms is perfectly able to dump 208 # Don't worry! An x86_64 dump_syms is perfectly able to dump
209 # 32-bit files. 209 # 32-bit files.
210 executable("dump_syms") { 210 executable("dump_syms") {
211 sources = [ 211 sources = [
212 "src/common/dwarf/bytereader.cc", 212 "src/common/dwarf/bytereader.cc",
213 "src/common/dwarf/dwarf2diehandler.cc",
214 "src/common/dwarf/dwarf2reader.cc",
213 "src/common/dwarf_cfi_to_module.cc", 215 "src/common/dwarf_cfi_to_module.cc",
214 "src/common/dwarf_cu_to_module.cc", 216 "src/common/dwarf_cu_to_module.cc",
215 "src/common/dwarf/dwarf2diehandler.cc",
216 "src/common/dwarf/dwarf2reader.cc",
217 "src/common/dwarf_line_to_module.cc", 217 "src/common/dwarf_line_to_module.cc",
218 "src/common/language.cc", 218 "src/common/language.cc",
219 "src/common/mac/arch_utilities.cc", 219 "src/common/mac/arch_utilities.cc",
220 "src/common/mac/arch_utilities.h", 220 "src/common/mac/arch_utilities.h",
221 "src/common/mac/dump_syms.mm", 221 "src/common/mac/dump_syms.mm",
222 "src/common/mac/file_id.cc", 222 "src/common/mac/file_id.cc",
223 "src/common/mac/macho_id.cc", 223 "src/common/mac/macho_id.cc",
224 "src/common/mac/macho_reader.cc", 224 "src/common/mac/macho_reader.cc",
225 "src/common/mac/macho_utilities.cc", 225 "src/common/mac/macho_utilities.cc",
226 "src/common/mac/macho_walker.cc", 226 "src/common/mac/macho_walker.cc",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 # } 332 # }
333 group("crash_report_sender") { 333 group("crash_report_sender") {
334 } 334 }
335 335
336 config("breakpad_config") { 336 config("breakpad_config") {
337 include_dirs = [ "src/client/apple/Framework" ] 337 include_dirs = [ "src/client/apple/Framework" ]
338 } 338 }
339 339
340 static_library("breakpad") { 340 static_library("breakpad") {
341 sources = [ 341 sources = [
342 "src/client/mac/Framework/Breakpad.mm",
343 "src/client/mac/Framework/OnDemandServer.mm",
342 "src/client/mac/crash_generation/crash_generation_client.cc", 344 "src/client/mac/crash_generation/crash_generation_client.cc",
343 "src/client/mac/crash_generation/crash_generation_client.h", 345 "src/client/mac/crash_generation/crash_generation_client.h",
346 "src/client/mac/handler/exception_handler.cc",
344 "src/client/mac/handler/protected_memory_allocator.cc", 347 "src/client/mac/handler/protected_memory_allocator.cc",
345 "src/client/mac/handler/exception_handler.cc",
346 "src/client/mac/Framework/Breakpad.mm",
347 "src/client/mac/Framework/OnDemandServer.mm",
348 ] 348 ]
349 349
350 configs += [ ":internal_config" ] 350 configs += [ ":internal_config" ]
351 public_configs = [ ":breakpad_config" ] 351 public_configs = [ ":breakpad_config" ]
352 352
353 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] 353 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ]
354 include_dirs = [ "src/client/apple/Framework" ] 354 include_dirs = [ "src/client/apple/Framework" ]
355 355
356 deps = [ 356 deps = [
357 ":utilities", 357 ":utilities",
358 ":crash_inspector", 358 ":crash_inspector",
359 ":crash_report_sender", 359 ":crash_report_sender",
360 ] 360 ]
361 } 361 }
362 362
363 group("client") { 363 group("client") {
364 public_configs = [ ":client_config" ] 364 public_configs = [ ":client_config" ]
365 } 365 }
366 } 366 }
367 367
368 if (is_linux) { 368 if (is_linux) {
369 executable("symupload") { 369 executable("symupload") {
370 sources = [ 370 sources = [
371 "src/tools/linux/symupload/sym_upload.cc",
372 "src/common/linux/http_upload.cc", 371 "src/common/linux/http_upload.cc",
373 "src/common/linux/http_upload.h", 372 "src/common/linux/http_upload.h",
373 "src/tools/linux/symupload/sym_upload.cc",
374 ] 374 ]
375 375
376 include_dirs = [ 376 include_dirs = [
377 "src", 377 "src",
378 "src/third_party", 378 "src/third_party",
379 ] 379 ]
380 380
381 configs += [ ":tools_config" ] 381 configs += [ ":tools_config" ]
382 382
383 libs = [ "dl" ] 383 libs = [ "dl" ]
384 } 384 }
385 } 385 }
386 386
387 if (is_linux || is_android) { 387 if (is_linux || is_android) {
388 if (current_toolchain == host_toolchain) { 388 if (current_toolchain == host_toolchain) {
389 # dump_syms is a host tool, so only compile it for the host system. 389 # dump_syms is a host tool, so only compile it for the host system.
390 executable("dump_syms") { 390 executable("dump_syms") {
391 sources = [ 391 sources = [
392 "src/common/dwarf/bytereader.cc", 392 "src/common/dwarf/bytereader.cc",
393 "src/common/dwarf/dwarf2diehandler.cc",
394 "src/common/dwarf/dwarf2reader.cc",
393 "src/common/dwarf_cfi_to_module.cc", 395 "src/common/dwarf_cfi_to_module.cc",
394 "src/common/dwarf_cfi_to_module.h", 396 "src/common/dwarf_cfi_to_module.h",
395 "src/common/dwarf_cu_to_module.cc", 397 "src/common/dwarf_cu_to_module.cc",
396 "src/common/dwarf_cu_to_module.h", 398 "src/common/dwarf_cu_to_module.h",
397 "src/common/dwarf/dwarf2diehandler.cc",
398 "src/common/dwarf/dwarf2reader.cc",
399 "src/common/dwarf_line_to_module.cc", 399 "src/common/dwarf_line_to_module.cc",
400 "src/common/dwarf_line_to_module.h", 400 "src/common/dwarf_line_to_module.h",
401 "src/common/language.cc", 401 "src/common/language.cc",
402 "src/common/language.h", 402 "src/common/language.h",
403 "src/common/linux/crc32.cc", 403 "src/common/linux/crc32.cc",
404 "src/common/linux/crc32.h", 404 "src/common/linux/crc32.h",
405 "src/common/linux/dump_symbols.cc", 405 "src/common/linux/dump_symbols.cc",
406 "src/common/linux/dump_symbols.h", 406 "src/common/linux/dump_symbols.h",
407 "src/common/linux/elf_symbols_to_module.cc", 407 "src/common/linux/elf_symbols_to_module.cc",
408 "src/common/linux/elf_symbols_to_module.h", 408 "src/common/linux/elf_symbols_to_module.h",
409 "src/common/linux/elfutils.cc", 409 "src/common/linux/elfutils.cc",
410 "src/common/linux/elfutils.h", 410 "src/common/linux/elfutils.h",
411 "src/common/linux/file_id.cc", 411 "src/common/linux/file_id.cc",
412 "src/common/linux/file_id.h", 412 "src/common/linux/file_id.h",
413 "src/common/linux/guid_creator.h",
413 "src/common/linux/linux_libc_support.cc", 414 "src/common/linux/linux_libc_support.cc",
414 "src/common/linux/linux_libc_support.h", 415 "src/common/linux/linux_libc_support.h",
415 "src/common/linux/memory_mapped_file.cc", 416 "src/common/linux/memory_mapped_file.cc",
416 "src/common/linux/memory_mapped_file.h", 417 "src/common/linux/memory_mapped_file.h",
417 "src/common/linux/guid_creator.h",
418 "src/common/module.cc", 418 "src/common/module.cc",
419 "src/common/module.h", 419 "src/common/module.h",
420 "src/common/stabs_reader.cc", 420 "src/common/stabs_reader.cc",
421 "src/common/stabs_reader.h", 421 "src/common/stabs_reader.h",
422 "src/common/stabs_to_module.cc", 422 "src/common/stabs_to_module.cc",
423 "src/common/stabs_to_module.h", 423 "src/common/stabs_to_module.h",
424 "src/tools/linux/dump_syms/dump_syms.cc", 424 "src/tools/linux/dump_syms/dump_syms.cc",
425 ] 425 ]
426 426
427 # There are some warnings in this code. 427 # There are some warnings in this code.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 } 682 }
683 } 683 }
684 684
685 if (is_ios) { 685 if (is_ios) {
686 static_library("client") { 686 static_library("client") {
687 sources = [ 687 sources = [
688 "src/client/ios/Breakpad.h", 688 "src/client/ios/Breakpad.h",
689 "src/client/ios/Breakpad.mm", 689 "src/client/ios/Breakpad.mm",
690 "src/client/ios/BreakpadController.h", 690 "src/client/ios/BreakpadController.h",
691 "src/client/ios/BreakpadController.mm", 691 "src/client/ios/BreakpadController.mm",
692 "src/client/ios/handler/ios_exception_minidump_generator.h",
692 "src/client/ios/handler/ios_exception_minidump_generator.mm", 693 "src/client/ios/handler/ios_exception_minidump_generator.mm",
693 "src/client/ios/handler/ios_exception_minidump_generator.h",
694 "src/client/mac/crash_generation/ConfigFile.h", 694 "src/client/mac/crash_generation/ConfigFile.h",
695 "src/client/mac/crash_generation/ConfigFile.mm", 695 "src/client/mac/crash_generation/ConfigFile.mm",
696 "src/client/mac/handler/breakpad_nlist_64.cc", 696 "src/client/mac/handler/breakpad_nlist_64.cc",
697 "src/client/mac/handler/breakpad_nlist_64.h", 697 "src/client/mac/handler/breakpad_nlist_64.h",
698 "src/client/mac/handler/dynamic_images.cc", 698 "src/client/mac/handler/dynamic_images.cc",
699 "src/client/mac/handler/dynamic_images.h", 699 "src/client/mac/handler/dynamic_images.h",
700 "src/client/mac/handler/protected_memory_allocator.cc",
701 "src/client/mac/handler/protected_memory_allocator.h",
702 "src/client/mac/handler/exception_handler.cc", 700 "src/client/mac/handler/exception_handler.cc",
703 "src/client/mac/handler/exception_handler.h", 701 "src/client/mac/handler/exception_handler.h",
704 "src/client/mac/handler/minidump_generator.cc", 702 "src/client/mac/handler/minidump_generator.cc",
705 "src/client/mac/handler/minidump_generator.h", 703 "src/client/mac/handler/minidump_generator.h",
704 "src/client/mac/handler/protected_memory_allocator.cc",
705 "src/client/mac/handler/protected_memory_allocator.h",
706 "src/client/mac/sender/uploader.h", 706 "src/client/mac/sender/uploader.h",
707 "src/client/mac/sender/uploader.mm", 707 "src/client/mac/sender/uploader.mm",
708 "src/client/minidump_file_writer-inl.h",
708 "src/client/minidump_file_writer.cc", 709 "src/client/minidump_file_writer.cc",
709 "src/client/minidump_file_writer.h", 710 "src/client/minidump_file_writer.h",
710 "src/client/minidump_file_writer-inl.h",
711 "src/common/convert_UTF.c", 711 "src/common/convert_UTF.c",
712 "src/common/convert_UTF.h", 712 "src/common/convert_UTF.h",
713 "src/common/mac/HTTPMultipartUpload.m",
713 "src/common/mac/file_id.cc", 714 "src/common/mac/file_id.cc",
714 "src/common/mac/file_id.h", 715 "src/common/mac/file_id.h",
715 "src/common/mac/HTTPMultipartUpload.m",
716 "src/common/mac/macho_id.cc", 716 "src/common/mac/macho_id.cc",
717 "src/common/mac/macho_id.h", 717 "src/common/mac/macho_id.h",
718 "src/common/mac/macho_utilities.cc", 718 "src/common/mac/macho_utilities.cc",
719 "src/common/mac/macho_utilities.h", 719 "src/common/mac/macho_utilities.h",
720 "src/common/mac/macho_walker.cc", 720 "src/common/mac/macho_walker.cc",
721 "src/common/mac/macho_walker.h", 721 "src/common/mac/macho_walker.h",
722 "src/common/mac/string_utilities.cc", 722 "src/common/mac/string_utilities.cc",
723 "src/common/mac/string_utilities.h", 723 "src/common/mac/string_utilities.h",
724 "src/common/md5.cc", 724 "src/common/md5.cc",
725 "src/common/md5.h", 725 "src/common/md5.h",
(...skipping 26 matching lines...) Expand all
752 752
753 defines = [ "BREAKPAD_NO_TERMINATE_THREAD" ] 753 defines = [ "BREAKPAD_NO_TERMINATE_THREAD" ]
754 754
755 sources = [ 755 sources = [
756 "src/client/windows/crash_generation/client_info.cc", 756 "src/client/windows/crash_generation/client_info.cc",
757 "src/client/windows/crash_generation/client_info.h", 757 "src/client/windows/crash_generation/client_info.h",
758 "src/client/windows/crash_generation/crash_generation_client.cc", 758 "src/client/windows/crash_generation/crash_generation_client.cc",
759 "src/client/windows/crash_generation/crash_generation_client.h", 759 "src/client/windows/crash_generation/crash_generation_client.h",
760 "src/client/windows/crash_generation/crash_generation_server.cc", 760 "src/client/windows/crash_generation/crash_generation_server.cc",
761 "src/client/windows/crash_generation/crash_generation_server.h", 761 "src/client/windows/crash_generation/crash_generation_server.h",
762 "src/client/windows/crash_generation/minidump_generator.cc",
763 "src/client/windows/crash_generation/minidump_generator.h",
762 "src/client/windows/handler/exception_handler.cc", 764 "src/client/windows/handler/exception_handler.cc",
763 "src/client/windows/handler/exception_handler.h", 765 "src/client/windows/handler/exception_handler.h",
764 "src/common/windows/guid_string.cc", 766 "src/common/windows/guid_string.cc",
765 "src/common/windows/guid_string.h", 767 "src/common/windows/guid_string.h",
768 "src/common/windows/string_utils-inl.h",
766 "src/google_breakpad/common/minidump_format.h", 769 "src/google_breakpad/common/minidump_format.h",
767 "src/client/windows/crash_generation/minidump_generator.cc",
768 "src/client/windows/crash_generation/minidump_generator.h",
769 "src/common/windows/string_utils-inl.h",
770 ] 770 ]
771 } 771 }
772 772
773 source_set("breakpad_sender") { 773 source_set("breakpad_sender") {
774 sources = [ 774 sources = [
775 "src/client/windows/sender/crash_report_sender.cc", 775 "src/client/windows/sender/crash_report_sender.cc",
776 "src/client/windows/sender/crash_report_sender.h", 776 "src/client/windows/sender/crash_report_sender.h",
777 "src/common/windows/http_upload.cc", 777 "src/common/windows/http_upload.cc",
778 "src/common/windows/http_upload.h", 778 "src/common/windows/http_upload.h",
779 ] 779 ]
780 configs += [ ":sender_config" ] 780 configs += [ ":sender_config" ]
781 public_configs = [ ":sender_config" ] 781 public_configs = [ ":sender_config" ]
782 } 782 }
783 } 783 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698