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 '../base/base.gyp:base_i18n',
17 '../base/base.gyp:base_prefs',
18 '../third_party/zlib/zlib.gyp:zlib',
19 'component_metrics_proto',
22 'export_dependent_settings': [
23 'component_metrics_proto',
26 'metrics/clean_exit_beacon.cc',
27 'metrics/clean_exit_beacon.h',
28 'metrics/client_info.cc',
29 'metrics/client_info.h',
30 'metrics/cloned_install_detector.cc',
31 'metrics/cloned_install_detector.h',
32 'metrics/compression_utils.cc',
33 'metrics/compression_utils.h',
34 'metrics/daily_event.cc',
35 'metrics/daily_event.h',
36 'metrics/machine_id_provider.h',
37 'metrics/machine_id_provider_stub.cc',
38 'metrics/machine_id_provider_win.cc',
39 'metrics/metrics_hashes.cc',
40 'metrics/metrics_hashes.h',
41 'metrics/metrics_log.cc',
42 'metrics/metrics_log.h',
43 'metrics/metrics_log_manager.cc',
44 'metrics/metrics_log_manager.h',
45 'metrics/metrics_log_uploader.cc',
46 'metrics/metrics_log_uploader.h',
47 'metrics/metrics_pref_names.cc',
48 'metrics/metrics_pref_names.h',
49 'metrics/metrics_provider.cc',
50 'metrics/metrics_provider.h',
51 'metrics/metrics_reporting_scheduler.cc',
52 'metrics/metrics_reporting_scheduler.h',
53 'metrics/metrics_service.cc',
54 'metrics/metrics_service.h',
55 'metrics/metrics_service_accessor.cc',
56 'metrics/metrics_service_accessor.h',
57 'metrics/metrics_service_client.cc',
58 'metrics/metrics_service_client.h',
59 'metrics/metrics_state_manager.cc',
60 'metrics/metrics_state_manager.h',
61 'metrics/metrics_switches.cc',
62 'metrics/metrics_switches.h',
63 'metrics/persisted_logs.cc',
64 'metrics/persisted_logs.h',
69 'metrics_serialization',
74 'metrics/machine_id_provider_stub.cc',
80 # GN version: //components/metrics:gpu
81 'target_name': 'metrics_gpu',
82 'type': 'static_library',
87 '../base/base.gyp:base',
88 '../content/content.gyp:content_browser',
89 '../ui/gfx/gfx.gyp:gfx',
90 'component_metrics_proto',
94 'metrics/gpu/gpu_metrics_provider.cc',
95 'metrics/gpu/gpu_metrics_provider.h',
99 # GN version: //components/metrics:net
100 'target_name': 'metrics_net',
101 'type': 'static_library',
106 '../base/base.gyp:base',
107 '../net/net.gyp:net',
108 '../url/url.gyp:url_lib',
109 'component_metrics_proto',
113 'metrics/net/network_metrics_provider.cc',
114 'metrics/net/network_metrics_provider.h',
115 'metrics/net/net_metrics_log_uploader.cc',
116 'metrics/net/net_metrics_log_uploader.h',
117 'metrics/net/wifi_access_point_info_provider.cc',
118 'metrics/net/wifi_access_point_info_provider.h',
119 'metrics/net/wifi_access_point_info_provider_chromeos.cc',
120 'metrics/net/wifi_access_point_info_provider_chromeos.h',
124 # GN version: //components/metrics:profiler
125 'target_name': 'metrics_profiler',
126 'type': 'static_library',
131 '../content/content.gyp:content_browser',
132 '../content/content.gyp:content_common',
133 'component_metrics_proto',
137 'export_dependent_settings': [
138 'component_metrics_proto',
141 'metrics/profiler/profiler_metrics_provider.cc',
142 'metrics/profiler/profiler_metrics_provider.h',
143 'metrics/profiler/tracking_synchronizer.cc',
144 'metrics/profiler/tracking_synchronizer.h',
145 'metrics/profiler/tracking_synchronizer_observer.h',
149 # Protobuf compiler / generator for UMA (User Metrics Analysis).
151 # GN version: //components/metrics/proto:proto
152 'target_name': 'component_metrics_proto',
153 'type': 'static_library',
155 'metrics/proto/chrome_user_metrics_extension.proto',
156 'metrics/proto/histogram_event.proto',
157 'metrics/proto/omnibox_event.proto',
158 'metrics/proto/omnibox_input_type.proto',
159 'metrics/proto/perf_data.proto',
160 'metrics/proto/profiler_event.proto',
161 'metrics/proto/sampled_profile.proto',
162 'metrics/proto/system_profile.proto',
163 'metrics/proto/user_action_event.proto',
166 'proto_in_dir': 'metrics/proto',
167 'proto_out_dir': 'components/metrics/proto',
169 'includes': [ '../build/protoc.gypi' ],
172 # TODO(isherman): Remove all //chrome dependencies on this target, and
173 # merge the files in this target with components_unittests.
174 # GN version: //components/metrics:test_support
175 'target_name': 'metrics_test_support',
176 'type': 'static_library',
181 'component_metrics_proto',
184 'export_dependent_settings': [
185 'component_metrics_proto',
188 'metrics/test_metrics_service_client.cc',
189 'metrics/test_metrics_service_client.h',
197 'target_name': 'metrics_serialization',
198 'type': 'static_library',
200 'metrics/serialization/serialization_utils.cc',
201 'metrics/serialization/serialization_utils.h',
202 'metrics/serialization/metric_sample.cc',
203 'metrics/serialization/metric_sample.h',
206 '../base/base.gyp:base',