OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 if (is_android) { |
| 6 import("//build/config/android/rules.gni") |
| 7 } |
| 8 |
5 source_set("debug") { | 9 source_set("debug") { |
6 sources = [ | 10 sources = [ |
7 "alias.cc", | 11 "alias.cc", |
8 "alias.h", | 12 "alias.h", |
9 "asan_invalid_access.cc", | 13 "asan_invalid_access.cc", |
10 "asan_invalid_access.h", | 14 "asan_invalid_access.h", |
11 "crash_logging.cc", | 15 "crash_logging.cc", |
12 "crash_logging.h", | 16 "crash_logging.h", |
13 "debugger.cc", | 17 "debugger.cc", |
14 "debugger.h", | 18 "debugger.h", |
(...skipping 22 matching lines...) Expand all Loading... |
37 "task_annotator.h", | 41 "task_annotator.h", |
38 ] | 42 ] |
39 | 43 |
40 if (is_android) { | 44 if (is_android) { |
41 # Android uses some Linux sources, put those back. | 45 # Android uses some Linux sources, put those back. |
42 set_sources_assignment_filter([]) | 46 set_sources_assignment_filter([]) |
43 sources += [ "proc_maps_linux.cc" ] | 47 sources += [ "proc_maps_linux.cc" ] |
44 set_sources_assignment_filter(sources_assignment_filter) | 48 set_sources_assignment_filter(sources_assignment_filter) |
45 | 49 |
46 sources -= [ "stack_trace_posix.cc" ] | 50 sources -= [ "stack_trace_posix.cc" ] |
| 51 |
| 52 defines = [ "ANDROID_LOG_TAG=$android_log_tag" ] |
47 } | 53 } |
48 | 54 |
49 if (is_nacl) { | 55 if (is_nacl) { |
50 sources -= [ | 56 sources -= [ |
51 "crash_logging.cc", | 57 "crash_logging.cc", |
52 "crash_logging.h", | 58 "crash_logging.h", |
53 "stack_trace.cc", | 59 "stack_trace.cc", |
54 "stack_trace_posix.cc", | 60 "stack_trace_posix.cc", |
55 ] | 61 ] |
56 } | 62 } |
(...skipping 10 matching lines...) Expand all Loading... |
67 deps += [ "//base/third_party/symbolize" ] | 73 deps += [ "//base/third_party/symbolize" ] |
68 } | 74 } |
69 | 75 |
70 allow_circular_includes_from = [ | 76 allow_circular_includes_from = [ |
71 "//base/memory", | 77 "//base/memory", |
72 "//base/process", | 78 "//base/process", |
73 ] | 79 ] |
74 | 80 |
75 visibility = [ "//base/*" ] | 81 visibility = [ "//base/*" ] |
76 } | 82 } |
OLD | NEW |