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 3 # found in the LICENSE file. 4 5 # GYP version: components/metrics.gypi:metrics 6 source_set("metrics") { 7 sources = [ 8 "clean_exit_beacon.cc", 9 "clean_exit_beacon.h", 10 "client_info.cc", 11 "client_info.h", 12 "cloned_install_detector.cc", 13 "cloned_install_detector.h", 14 "compression_utils.cc", 15 "compression_utils.h", 16 "daily_event.cc", 17 "daily_event.h", 18 "machine_id_provider.h", 19 "machine_id_provider_stub.cc", 20 "machine_id_provider_win.cc", 21 "metrics_hashes.cc", 22 "metrics_hashes.h", 23 "metrics_log.cc", 24 "metrics_log.h", 25 "metrics_log_manager.cc", 26 "metrics_log_manager.h", 27 "metrics_log_uploader.cc", 28 "metrics_log_uploader.h", 29 "metrics_pref_names.cc", 30 "metrics_pref_names.h", 31 "metrics_provider.cc", 32 "metrics_provider.h", 33 "metrics_reporting_scheduler.cc", 34 "metrics_reporting_scheduler.h", 35 "metrics_service.cc", 36 "metrics_service.h", 37 "metrics_service_client.cc", 38 "metrics_service_client.h", 39 "metrics_state_manager.cc", 40 "metrics_state_manager.h", 41 "metrics_switches.cc", 42 "metrics_switches.h", 43 "persisted_logs.cc", 44 "persisted_logs.h", 45 ] 46 47 public_deps = [ 48 "//components/metrics/proto", 49 ] 50 deps = [ 51 "//base", 52 "//components/variations", 53 "//third_party/zlib", 54 ] 55 } 56 57 # GYP version: components/metrics.gypi:metrics_gpu 58 source_set("gpu") { 59 sources = [ 60 "gpu/gpu_metrics_provider.cc", 61 "gpu/gpu_metrics_provider.h", 62 ] 63 64 public_deps = [ 65 ":metrics", 66 ] 67 deps = [ 68 "//gpu/config", 69 ] 70 } 71 72 # GYP version: components/metrics.gypi:metrics_net 73 static_library("net") { 74 sources = [ 75 "net/network_metrics_provider.cc", 76 "net/network_metrics_provider.h", 77 "net/net_metrics_log_uploader.cc", 78 "net/net_metrics_log_uploader.h", 79 "net/wifi_access_point_info_provider.cc", 80 "net/wifi_access_point_info_provider.h", 81 "net/wifi_access_point_info_provider_chromeos.cc", 82 "net/wifi_access_point_info_provider_chromeos.h", 83 ] 84 85 public_deps = [ 86 ":metrics", 87 ] 88 deps = [ 89 "//net", 90 ] 91 } 92 93 # GYP version: components/metrics.gypi:metrics_profiler 94 source_set("profiler") { 95 sources = [ 96 "profiler/profiler_metrics_provider.cc", 97 "profiler/profiler_metrics_provider.h", 98 "profiler/tracking_synchronizer.cc", 99 "profiler/tracking_synchronizer.h", 100 "profiler/tracking_synchronizer_observer.h", 101 ] 102 103 public_deps = [ 104 ":metrics", 105 ] 106 deps = [ 107 "//base", 108 "//content/public/browser", 109 ] 110 } 111 112 # GYP version: components/metrics.gypi:metrics_test_support 113 static_library("test_support") { 114 sources = [ 115 "test_metrics_service_client.cc", 116 "test_metrics_service_client.h", 117 ] 118 119 public_deps = [ 120 ":metrics", 121 ] 122 } 123 124 # TODO(GYP): metrics_chromeos 125