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.
8 # GN version: //components/metrics
9 'target_name': 'metrics',
10 'type': 'static_library',
15 '../base/base.gyp:base',
16 '../third_party/zlib/zlib.gyp:zlib',
17 'component_metrics_proto',
20 'export_dependent_settings': [
21 'component_metrics_proto',
24 'metrics/clean_exit_beacon.cc',
25 'metrics/clean_exit_beacon.h',
26 'metrics/client_info.cc',
27 'metrics/client_info.h',
28 'metrics/cloned_install_detector.cc',
29 'metrics/cloned_install_detector.h',
30 'metrics/compression_utils.cc',
31 'metrics/compression_utils.h',
32 'metrics/daily_event.cc',
33 'metrics/daily_event.h',
34 'metrics/machine_id_provider.h',
35 'metrics/machine_id_provider_stub.cc',
36 'metrics/machine_id_provider_win.cc',
37 'metrics/metrics_hashes.cc',
38 'metrics/metrics_hashes.h',
39 'metrics/metrics_log.cc',
40 'metrics/metrics_log.h',
41 'metrics/metrics_log_manager.cc',
42 'metrics/metrics_log_manager.h',
43 'metrics/metrics_log_uploader.cc',
44 'metrics/metrics_log_uploader.h',
45 'metrics/metrics_pref_names.cc',
46 'metrics/metrics_pref_names.h',
47 'metrics/metrics_provider.cc',
48 'metrics/metrics_provider.h',
49 'metrics/metrics_reporting_scheduler.cc',
50 'metrics/metrics_reporting_scheduler.h',
51 'metrics/metrics_service.cc',
52 'metrics/metrics_service.h',
53 'metrics/metrics_service_client.cc',
54 'metrics/metrics_service_client.h',
55 'metrics/metrics_state_manager.cc',
56 'metrics/metrics_state_manager.h',
57 'metrics/metrics_switches.cc',
58 'metrics/metrics_switches.h',
59 'metrics/persisted_logs.cc',
60 'metrics/persisted_logs.h',
65 'metrics_serialization',
70 'metrics/machine_id_provider_stub.cc',
76 # GN version: //components/metrics:gpu
77 'target_name': 'metrics_gpu',
78 'type': 'static_library',
83 'component_metrics_proto',
87 'metrics/gpu/gpu_metrics_provider.cc',
88 'metrics/gpu/gpu_metrics_provider.h',
92 # GN version: //components/metrics:net
93 'target_name': 'metrics_net',
94 'type': 'static_library',
100 'component_metrics_proto',
104 'metrics/net/network_metrics_provider.cc',
105 'metrics/net/network_metrics_provider.h',
106 'metrics/net/net_metrics_log_uploader.cc',
107 'metrics/net/net_metrics_log_uploader.h',
108 'metrics/net/wifi_access_point_info_provider.cc',
109 'metrics/net/wifi_access_point_info_provider.h',
110 'metrics/net/wifi_access_point_info_provider_chromeos.cc',
111 'metrics/net/wifi_access_point_info_provider_chromeos.h',
115 # GN version: //components/metrics:profiler
116 'target_name': 'metrics_profiler',
117 'type': 'static_library',
122 '../content/content.gyp:content_browser',
123 'component_metrics_proto',
126 'export_dependent_settings': [
127 'component_metrics_proto',
130 'metrics/profiler/profiler_metrics_provider.cc',
131 'metrics/profiler/profiler_metrics_provider.h',
132 'metrics/profiler/tracking_synchronizer.cc',
133 'metrics/profiler/tracking_synchronizer.h',
134 'metrics/profiler/tracking_synchronizer_observer.h',
138 # Protobuf compiler / generator for UMA (User Metrics Analysis).
140 # GN version: //components/metrics/proto:proto
141 'target_name': 'component_metrics_proto',
142 'type': 'static_library',
144 'metrics/proto/chrome_user_metrics_extension.proto',
145 'metrics/proto/histogram_event.proto',
146 'metrics/proto/omnibox_event.proto',
147 'metrics/proto/omnibox_input_type.proto',
148 'metrics/proto/perf_data.proto',
149 'metrics/proto/profiler_event.proto',
150 'metrics/proto/sampled_profile.proto',
151 'metrics/proto/system_profile.proto',
152 'metrics/proto/user_action_event.proto',
155 'proto_in_dir': 'metrics/proto',
156 'proto_out_dir': 'components/metrics/proto',
158 'includes': [ '../build/protoc.gypi' ],
161 # TODO(isherman): Remove all //chrome dependencies on this target, and
162 # merge the files in this target with components_unittests.
163 # GN version: //components/metrics:test_support
164 'target_name': 'metrics_test_support',
165 'type': 'static_library',
170 'component_metrics_proto',
173 'export_dependent_settings': [
174 'component_metrics_proto',
177 'metrics/test_metrics_service_client.cc',
178 'metrics/test_metrics_service_client.h',
186 'target_name': 'metrics_serialization',
187 'type': 'static_library',
189 'metrics/serialization/serialization_utils.cc',
190 'metrics/serialization/serialization_utils.h',
191 'metrics/serialization/metric_sample.cc',
192 'metrics/serialization/metric_sample.h',
195 '../base/base.gyp:base',