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',
21 'metrics/client_info.cc',
22 'metrics/client_info.h',
23 'metrics/cloned_install_detector.cc',
24 'metrics/cloned_install_detector.h',
25 'metrics/compression_utils.cc',
26 'metrics/compression_utils.h',
27 'metrics/machine_id_provider.h',
28 'metrics/machine_id_provider_stub.cc',
29 'metrics/machine_id_provider_win.cc',
30 'metrics/metrics_hashes.cc',
31 'metrics/metrics_hashes.h',
32 'metrics/metrics_log.cc',
33 'metrics/metrics_log.h',
34 'metrics/metrics_log_manager.cc',
35 'metrics/metrics_log_manager.h',
36 'metrics/metrics_log_uploader.cc',
37 'metrics/metrics_log_uploader.h',
38 'metrics/metrics_pref_names.cc',
39 'metrics/metrics_pref_names.h',
40 'metrics/metrics_provider.h',
41 'metrics/metrics_reporting_scheduler.cc',
42 'metrics/metrics_reporting_scheduler.h',
43 'metrics/metrics_service.cc',
44 'metrics/metrics_service.h',
45 'metrics/metrics_service_client.h',
46 'metrics/metrics_service_observer.cc',
47 'metrics/metrics_service_observer.h',
48 'metrics/metrics_state_manager.cc',
49 'metrics/metrics_state_manager.h',
50 'metrics/metrics_switches.cc',
51 'metrics/metrics_switches.h',
52 'metrics/persisted_logs.cc',
53 'metrics/persisted_logs.h',
58 'metrics_serialization',
63 'metrics/machine_id_provider_stub.cc',
69 # GN version: //components/metrics:net
70 'target_name': 'metrics_net',
71 'type': 'static_library',
80 'metrics/net/net_metrics_log_uploader.cc',
81 'metrics/net/net_metrics_log_uploader.h',
85 # Protobuf compiler / generator for UMA (User Metrics Analysis).
87 # GN version: //components/metrics/proto:proto
88 'target_name': 'component_metrics_proto',
89 'type': 'static_library',
91 'metrics/proto/chrome_user_metrics_extension.proto',
92 'metrics/proto/histogram_event.proto',
93 'metrics/proto/omnibox_event.proto',
94 'metrics/proto/omnibox_input_type.proto',
95 'metrics/proto/perf_data.proto',
96 'metrics/proto/profiler_event.proto',
97 'metrics/proto/sampled_profile.proto',
98 'metrics/proto/system_profile.proto',
99 'metrics/proto/user_action_event.proto',
102 'proto_in_dir': 'metrics/proto',
103 'proto_out_dir': 'components/metrics/proto',
105 'includes': [ '../build/protoc.gypi' ],
108 # TODO(isherman): Remove all //chrome dependencies on this target, and
109 # merge the files in this target with components_unittests.
110 # GN version: //components/metrics:test_support
111 'target_name': 'metrics_test_support',
112 'type': 'static_library',
117 'component_metrics_proto',
120 'export_dependent_settings': [
121 'component_metrics_proto',
124 'metrics/test_metrics_service_client.cc',
125 'metrics/test_metrics_service_client.h',
133 'target_name': 'metrics_serialization',
134 'type': 'static_library',
136 'metrics/serialization/serialization_utils.cc',
137 'metrics/serialization/serialization_utils.h',
138 'metrics/serialization/metric_sample.cc',
139 'metrics/serialization/metric_sample.h',
142 '../base/base.gyp:base',