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 'target_name': 'metrics',
9 'type': 'static_library',
14 '../base/base.gyp:base',
15 '../third_party/zlib/zlib.gyp:zlib',
16 'component_metrics_proto',
20 'metrics/compression_utils.cc',
21 'metrics/compression_utils.h',
22 'metrics/cloned_install_detector.cc',
23 'metrics/cloned_install_detector.h',
24 'metrics/machine_id_provider.h',
25 'metrics/machine_id_provider_stub.cc',
26 'metrics/machine_id_provider_win.cc',
27 'metrics/metrics_hashes.cc',
28 'metrics/metrics_hashes.h',
29 'metrics/metrics_log.cc',
30 'metrics/metrics_log.h',
31 'metrics/metrics_log_uploader.cc',
32 'metrics/metrics_log_uploader.h',
33 'metrics/metrics_log_manager.cc',
34 'metrics/metrics_log_manager.h',
35 'metrics/metrics_pref_names.cc',
36 'metrics/metrics_pref_names.h',
37 'metrics/metrics_provider.h',
38 'metrics/metrics_reporting_scheduler.cc',
39 'metrics/metrics_reporting_scheduler.h',
40 'metrics/metrics_service.cc',
41 'metrics/metrics_service.h',
42 'metrics/metrics_service_client.h',
43 'metrics/metrics_service_observer.cc',
44 'metrics/metrics_service_observer.h',
45 'metrics/metrics_state_manager.cc',
46 'metrics/metrics_state_manager.h',
47 'metrics/metrics_switches.cc',
48 'metrics/metrics_switches.h',
49 'metrics/persisted_logs.cc',
50 'metrics/persisted_logs.h',
60 'metrics/machine_id_provider_stub.cc',
66 'target_name': 'metrics_net',
67 'type': 'static_library',
76 'metrics/net/net_metrics_log_uploader.cc',
77 'metrics/net/net_metrics_log_uploader.h',
81 # Protobuf compiler / generator for UMA (User Metrics Analysis).
83 # GN version: //component/metrics/proto:proto
84 'target_name': 'component_metrics_proto',
85 'type': 'static_library',
87 'metrics/proto/chrome_user_metrics_extension.proto',
88 'metrics/proto/histogram_event.proto',
89 'metrics/proto/omnibox_event.proto',
90 'metrics/proto/omnibox_input_type.proto',
91 'metrics/proto/perf_data.proto',
92 'metrics/proto/profiler_event.proto',
93 'metrics/proto/sampled_profile.proto',
94 'metrics/proto/system_profile.proto',
95 'metrics/proto/user_action_event.proto',
98 'proto_in_dir': 'metrics/proto',
99 'proto_out_dir': 'components/metrics/proto',
101 'includes': [ '../build/protoc.gypi' ],
104 # TODO(isherman): Remove all //chrome dependencies on this target, and
105 # merge the files in this target with components_unittests.
106 'target_name': 'metrics_test_support',
107 'type': 'static_library',
112 'component_metrics_proto',
115 'export_dependent_settings': [
116 'component_metrics_proto',
119 'metrics/test_metrics_service_client.cc',
120 'metrics/test_metrics_service_client.h',
128 'target_name': 'metrics_chromeos',
129 'type': 'static_library',
131 'metrics/chromeos/serialization_utils.cc',
132 'metrics/chromeos/serialization_utils.h',
133 'metrics/chromeos/metric_sample.cc',
134 'metrics/chromeos/metric_sample.h',
137 '../base/base.gyp:base',