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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 && current_toolchain == host_toolchain) { | 327 if (is_linux) { |
328 executable("dump_syms") { | 328 if (current_toolchain == host_toolchain) { |
jamesr
2014/08/12 18:28:15
sorry i'm think - how does this do something diffe
| |
329 sources = [ | 329 # dump_syms is a host tool, so only compile it for the host system. |
330 "src/common/dwarf/bytereader.cc", | 330 executable("dump_syms") { |
331 "src/common/dwarf_cfi_to_module.cc", | 331 sources = [ |
332 "src/common/dwarf_cfi_to_module.h", | 332 "src/common/dwarf/bytereader.cc", |
333 "src/common/dwarf_cu_to_module.cc", | 333 "src/common/dwarf_cfi_to_module.cc", |
334 "src/common/dwarf_cu_to_module.h", | 334 "src/common/dwarf_cfi_to_module.h", |
335 "src/common/dwarf/dwarf2diehandler.cc", | 335 "src/common/dwarf_cu_to_module.cc", |
336 "src/common/dwarf/dwarf2reader.cc", | 336 "src/common/dwarf_cu_to_module.h", |
337 "src/common/dwarf_line_to_module.cc", | 337 "src/common/dwarf/dwarf2diehandler.cc", |
338 "src/common/dwarf_line_to_module.h", | 338 "src/common/dwarf/dwarf2reader.cc", |
339 "src/common/language.cc", | 339 "src/common/dwarf_line_to_module.cc", |
340 "src/common/language.h", | 340 "src/common/dwarf_line_to_module.h", |
341 "src/common/linux/crc32.cc", | 341 "src/common/language.cc", |
342 "src/common/linux/crc32.h", | 342 "src/common/language.h", |
343 "src/common/linux/dump_symbols.cc", | 343 "src/common/linux/crc32.cc", |
344 "src/common/linux/dump_symbols.h", | 344 "src/common/linux/crc32.h", |
345 "src/common/linux/elf_symbols_to_module.cc", | 345 "src/common/linux/dump_symbols.cc", |
346 "src/common/linux/elf_symbols_to_module.h", | 346 "src/common/linux/dump_symbols.h", |
347 "src/common/linux/elfutils.cc", | 347 "src/common/linux/elf_symbols_to_module.cc", |
348 "src/common/linux/elfutils.h", | 348 "src/common/linux/elf_symbols_to_module.h", |
349 "src/common/linux/file_id.cc", | 349 "src/common/linux/elfutils.cc", |
350 "src/common/linux/file_id.h", | 350 "src/common/linux/elfutils.h", |
351 "src/common/linux/linux_libc_support.cc", | 351 "src/common/linux/file_id.cc", |
352 "src/common/linux/linux_libc_support.h", | 352 "src/common/linux/file_id.h", |
353 "src/common/linux/memory_mapped_file.cc", | 353 "src/common/linux/linux_libc_support.cc", |
354 "src/common/linux/memory_mapped_file.h", | 354 "src/common/linux/linux_libc_support.h", |
355 "src/common/linux/guid_creator.h", | 355 "src/common/linux/memory_mapped_file.cc", |
356 "src/common/module.cc", | 356 "src/common/linux/memory_mapped_file.h", |
357 "src/common/module.h", | 357 "src/common/linux/guid_creator.h", |
358 "src/common/stabs_reader.cc", | 358 "src/common/module.cc", |
359 "src/common/stabs_reader.h", | 359 "src/common/module.h", |
360 "src/common/stabs_to_module.cc", | 360 "src/common/stabs_reader.cc", |
361 "src/common/stabs_to_module.h", | 361 "src/common/stabs_reader.h", |
362 "src/tools/linux/dump_syms/dump_syms.cc", | 362 "src/common/stabs_to_module.cc", |
363 ] | 363 "src/common/stabs_to_module.h", |
364 "src/tools/linux/dump_syms/dump_syms.cc", | |
365 ] | |
364 | 366 |
365 # There are some warnings in this code. | 367 # There are some warnings in this code. |
366 configs -= [ "//build/config/compiler:chromium_code" ] | 368 configs -= [ "//build/config/compiler:chromium_code" ] |
367 configs += [ "//build/config/compiler:no_chromium_code" ] | 369 configs += [ "//build/config/compiler:no_chromium_code" ] |
368 | 370 |
369 # dwarf2reader.cc uses dynamic_cast. Because we don't typically | 371 # dwarf2reader.cc uses dynamic_cast. Because we don't typically |
370 # don't support RTTI, we enable it for this single target. Since | 372 # don't support RTTI, we enable it for this single target. Since |
371 # dump_syms doesn't share any object files with anything else, | 373 # dump_syms doesn't share any object files with anything else, |
372 # this doesn't end up polluting Chrome itself. | 374 # this doesn't end up polluting Chrome itself. |
373 configs -= [ "//build/config/compiler:no_rtti" ] | 375 configs -= [ "//build/config/compiler:no_rtti" ] |
374 configs += [ "//build/config/compiler:rtti" ] | 376 configs += [ "//build/config/compiler:rtti" ] |
375 | 377 |
376 # Breakpad rev 583 introduced this flag. | 378 # Breakpad rev 583 introduced this flag. |
377 # Using this define, stabs_reader.h will include a.out.h to | 379 # Using this define, stabs_reader.h will include a.out.h to |
378 # build on Linux. | 380 # build on Linux. |
379 defines = [ "HAVE_A_OUT_H" ] | 381 defines = [ "HAVE_A_OUT_H" ] |
380 | 382 |
381 include_dirs = [ "src" ] | 383 include_dirs = [ "src" ] |
384 } | |
382 } | 385 } |
383 | 386 |
384 static_library("client") { | 387 static_library("client") { |
385 sources = [ | 388 sources = [ |
386 "src/client/linux/crash_generation/crash_generation_client.cc", | 389 "src/client/linux/crash_generation/crash_generation_client.cc", |
387 "src/client/linux/crash_generation/crash_generation_client.h", | 390 "src/client/linux/crash_generation/crash_generation_client.h", |
388 "src/client/linux/handler/exception_handler.cc", | 391 "src/client/linux/handler/exception_handler.cc", |
389 "src/client/linux/handler/exception_handler.h", | 392 "src/client/linux/handler/exception_handler.h", |
390 "src/client/linux/handler/minidump_descriptor.cc", | 393 "src/client/linux/handler/minidump_descriptor.cc", |
391 "src/client/linux/handler/minidump_descriptor.h", | 394 "src/client/linux/handler/minidump_descriptor.h", |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
678 "src/client/windows/handler/exception_handler.h", | 681 "src/client/windows/handler/exception_handler.h", |
679 "src/common/windows/guid_string.cc", | 682 "src/common/windows/guid_string.cc", |
680 "src/common/windows/guid_string.h", | 683 "src/common/windows/guid_string.h", |
681 "src/google_breakpad/common/minidump_format.h", | 684 "src/google_breakpad/common/minidump_format.h", |
682 "src/client/windows/crash_generation/minidump_generator.cc", | 685 "src/client/windows/crash_generation/minidump_generator.cc", |
683 "src/client/windows/crash_generation/minidump_generator.h", | 686 "src/client/windows/crash_generation/minidump_generator.h", |
684 "src/common/windows/string_utils-inl.h", | 687 "src/common/windows/string_utils-inl.h", |
685 ] | 688 ] |
686 } | 689 } |
687 } | 690 } |
OLD | NEW |