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