| 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 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
| 6 | 6 |
| 7 component("tracing") { | 7 component("tracing") { |
| 8 sources = [ | 8 sources = [ |
| 9 "child/child_memory_dump_manager_delegate_impl.cc", | 9 "child/child_memory_dump_manager_delegate_impl.cc", |
| 10 "child/child_memory_dump_manager_delegate_impl.h", | 10 "child/child_memory_dump_manager_delegate_impl.h", |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 visibility = [ "//components/tracing/*" ] | 63 visibility = [ "//components/tracing/*" ] |
| 64 | 64 |
| 65 sources = [ | 65 sources = [ |
| 66 "test/example_messages.proto", | 66 "test/example_messages.proto", |
| 67 ] | 67 ] |
| 68 | 68 |
| 69 generator_plugin_label = "tools/proto_zero_plugin:proto_zero_plugin" | 69 generator_plugin_label = "tools/proto_zero_plugin:proto_zero_plugin" |
| 70 generator_plugin_suffix = ".pbzero" | 70 generator_plugin_suffix = ".pbzero" |
| 71 generate_cc = false | 71 generate_cc = false |
| 72 generate_python = false | 72 generate_python = false |
| 73 | |
| 74 # TODO(kraynov) Move away this complex path evaluation and dependency | |
| 75 # injection to proto_library.gni. All lines below should be removed. | |
| 76 # The problem is that root_out_dir and root_build_dir may differ in case of | |
| 77 # cross compilation. Also .exe will be appended on Windows. | |
| 78 | |
| 79 plugin_host_label = generator_plugin_label + "($host_toolchain)" | |
| 80 generator_plugin = | |
| 81 rebase_path(get_label_info(plugin_host_label, "root_out_dir") + "/" + | |
| 82 get_label_info(plugin_host_label, "name"), | |
| 83 root_build_dir) | |
| 84 if (is_win) { | |
| 85 generator_plugin += ".exe" | |
| 86 } | |
| 87 | |
| 88 deps = [ | |
| 89 plugin_host_label, | |
| 90 ] | |
| 91 } | 73 } |
| 92 | 74 |
| 93 source_set("unit_tests") { | 75 source_set("unit_tests") { |
| 94 testonly = true | 76 testonly = true |
| 95 | 77 |
| 96 sources = [ | 78 sources = [ |
| 97 "child/child_trace_message_filter_unittest.cc", | 79 "child/child_trace_message_filter_unittest.cc", |
| 98 "common/graphics_memory_dump_provider_android_unittest.cc", | 80 "common/graphics_memory_dump_provider_android_unittest.cc", |
| 99 "common/process_metrics_memory_dump_provider_unittest.cc", | 81 "common/process_metrics_memory_dump_provider_unittest.cc", |
| 100 "core/proto_utils_unittest.cc", | 82 "core/proto_utils_unittest.cc", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 112 "//ipc", | 94 "//ipc", |
| 113 "//testing/gmock:gmock", | 95 "//testing/gmock:gmock", |
| 114 "//testing/gtest", | 96 "//testing/gtest", |
| 115 ] | 97 ] |
| 116 | 98 |
| 117 if (!is_android) { | 99 if (!is_android) { |
| 118 sources += [ "browser/trace_config_file_unittest.cc" ] | 100 sources += [ "browser/trace_config_file_unittest.cc" ] |
| 119 deps += [ ":startup_tracing" ] | 101 deps += [ ":startup_tracing" ] |
| 120 } | 102 } |
| 121 } | 103 } |
| OLD | NEW |