| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/buildflag_header.gni") | |
| 6 import("//build/config/compiler/compiler.gni") | |
| 7 | |
| 8 source_set("debug") { | |
| 9 sources = [ | |
| 10 "alias.cc", | |
| 11 "alias.h", | |
| 12 "asan_invalid_access.cc", | |
| 13 "asan_invalid_access.h", | |
| 14 "crash_logging.cc", | |
| 15 "crash_logging.h", | |
| 16 "debugger.cc", | |
| 17 "debugger.h", | |
| 18 "debugger_posix.cc", | |
| 19 "debugger_win.cc", | |
| 20 "dump_without_crashing.cc", | |
| 21 "dump_without_crashing.h", | |
| 22 "gdi_debug_util_win.cc", | |
| 23 "gdi_debug_util_win.h", | |
| 24 | |
| 25 # This file depends on files from the "allocator" target, | |
| 26 # but this target does not depend on "allocator" (see | |
| 27 # allocator.gyp for details). | |
| 28 "leak_annotations.h", | |
| 29 "leak_tracker.h", | |
| 30 "proc_maps_linux.cc", | |
| 31 "proc_maps_linux.h", | |
| 32 "profiler.cc", | |
| 33 "profiler.h", | |
| 34 "stack_trace.cc", | |
| 35 "stack_trace.h", | |
| 36 "stack_trace_android.cc", | |
| 37 "stack_trace_posix.cc", | |
| 38 "stack_trace_win.cc", | |
| 39 "task_annotator.cc", | |
| 40 "task_annotator.h", | |
| 41 ] | |
| 42 | |
| 43 if (is_android) { | |
| 44 # Android uses some Linux sources, put those back. | |
| 45 set_sources_assignment_filter([]) | |
| 46 sources += [ "proc_maps_linux.cc" ] | |
| 47 set_sources_assignment_filter(sources_assignment_filter) | |
| 48 | |
| 49 sources -= [ "stack_trace_posix.cc" ] | |
| 50 } | |
| 51 | |
| 52 if (is_nacl) { | |
| 53 sources -= [ | |
| 54 "crash_logging.cc", | |
| 55 "crash_logging.h", | |
| 56 "stack_trace.cc", | |
| 57 "stack_trace_posix.cc", | |
| 58 ] | |
| 59 } | |
| 60 | |
| 61 configs += [ "//base:base_implementation" ] | |
| 62 | |
| 63 deps = [ | |
| 64 ":debugging_flags", | |
| 65 "//base:base_static", | |
| 66 "//base/memory", | |
| 67 "//base/process", | |
| 68 ] | |
| 69 | |
| 70 if (is_linux) { | |
| 71 defines = [ "USE_SYMBOLIZE" ] | |
| 72 deps += [ "//base/third_party/symbolize" ] | |
| 73 } | |
| 74 | |
| 75 allow_circular_includes_from = [ | |
| 76 "//base/memory", | |
| 77 "//base/process", | |
| 78 ] | |
| 79 | |
| 80 visibility = [ "//base/*" ] | |
| 81 } | |
| 82 | |
| 83 buildflag_header("debugging_flags") { | |
| 84 header = "debugging_flags.h" | |
| 85 | |
| 86 flags = [ "ENABLE_PROFILING=$enable_profiling" ] | |
| 87 } | |
| OLD | NEW |