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 component("tracing") { | 5 component("tracing") { |
6 sources = [ | 6 sources = [ |
7 "child_memory_dump_manager_delegate_impl.cc", | 7 "child_memory_dump_manager_delegate_impl.cc", |
8 "child_memory_dump_manager_delegate_impl.h", | 8 "child_memory_dump_manager_delegate_impl.h", |
9 "child_trace_message_filter.cc", | 9 "child_trace_message_filter.cc", |
10 "child_trace_message_filter.h", | 10 "child_trace_message_filter.h", |
11 "graphics_memory_dump_provider_android.cc", | 11 "graphics_memory_dump_provider_android.cc", |
12 "graphics_memory_dump_provider_android.h", | 12 "graphics_memory_dump_provider_android.h", |
| 13 "process_metrics_memory_dump_provider.cc", |
| 14 "process_metrics_memory_dump_provider.h", |
| 15 "process_metrics_memory_dump_provider_linux.cc", |
13 "tracing_export.h", | 16 "tracing_export.h", |
14 "tracing_messages.cc", | 17 "tracing_messages.cc", |
15 "tracing_messages.h", | 18 "tracing_messages.h", |
16 ] | 19 ] |
17 | 20 |
18 defines = [ "TRACING_IMPLEMENTATION" ] | 21 defines = [ "TRACING_IMPLEMENTATION" ] |
19 | 22 |
20 deps = [ | 23 deps = [ |
21 "//base", | 24 "//base", |
22 "//ipc", | 25 "//ipc", |
23 ] | 26 ] |
| 27 |
| 28 set_sources_assignment_filter([]) |
| 29 if (is_android) { |
| 30 sources += [ "process_metrics_memory_dump_provider_linux.cc" ] |
| 31 } |
| 32 set_sources_assignment_filter(sources_assignment_filter) |
24 } | 33 } |
25 | 34 |
26 component("startup_tracing") { | 35 component("startup_tracing") { |
27 sources = [ | 36 sources = [ |
28 "trace_config_file.cc", | 37 "trace_config_file.cc", |
29 "trace_config_file.h", | 38 "trace_config_file.h", |
30 "trace_to_console.cc", | 39 "trace_to_console.cc", |
31 "trace_to_console.h", | 40 "trace_to_console.h", |
32 "tracing_export.h", | 41 "tracing_export.h", |
33 "tracing_switches.cc", | 42 "tracing_switches.cc", |
34 "tracing_switches.h", | 43 "tracing_switches.h", |
35 ] | 44 ] |
36 | 45 |
37 defines = [ "TRACING_IMPLEMENTATION" ] | 46 defines = [ "TRACING_IMPLEMENTATION" ] |
38 | 47 |
39 deps = [ | 48 deps = [ |
40 "//base", | 49 "//base", |
41 ] | 50 ] |
42 } | 51 } |
43 | 52 |
44 source_set("unit_tests") { | 53 source_set("unit_tests") { |
45 testonly = true | 54 testonly = true |
46 | 55 |
47 sources = [ | 56 sources = [ |
48 "graphics_memory_dump_provider_android_unittest.cc", | 57 "graphics_memory_dump_provider_android_unittest.cc", |
| 58 "process_metrics_memory_dump_provider_unittest.cc", |
49 ] | 59 ] |
50 | 60 |
51 deps = [ | 61 deps = [ |
52 ":tracing", | 62 ":tracing", |
53 "//base/test:test_support", | 63 "//base/test:test_support", |
54 "//testing/gtest", | 64 "//testing/gtest", |
55 ] | 65 ] |
56 | 66 |
57 if (!is_android) { | 67 if (!is_android) { |
58 sources += [ "trace_config_file_unittest.cc" ] | 68 sources += [ "trace_config_file_unittest.cc" ] |
59 deps += [ ":startup_tracing" ] | 69 deps += [ ":startup_tracing" ] |
60 } | 70 } |
61 } | 71 } |
OLD | NEW |