Supervised user block interstitial: Fix font
[chromium-blink-merge.git] / components / metrics.gypi
blobf144881bad290fab6ee2ee2bf85b897891f703b9
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.
6   'targets': [
7     {
8       # GN version: //components/metrics
9       'target_name': 'metrics',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'dependencies': [
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',
20         'variations',
21       ],
22       'export_dependent_settings': [
23         'component_metrics_proto',
24       ],
25       'sources': [
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/histogram_encoder.cc',
37         'metrics/histogram_encoder.h',
38         'metrics/histogram_manager.cc',
39         'metrics/histogram_manager.h',
40         'metrics/machine_id_provider.h',
41         'metrics/machine_id_provider_stub.cc',
42         'metrics/machine_id_provider_win.cc',
43         'metrics/metrics_hashes.cc',
44         'metrics/metrics_hashes.h',
45         'metrics/metrics_log.cc',
46         'metrics/metrics_log.h',
47         'metrics/metrics_log_manager.cc',
48         'metrics/metrics_log_manager.h',
49         'metrics/metrics_log_uploader.cc',
50         'metrics/metrics_log_uploader.h',
51         'metrics/metrics_pref_names.cc',
52         'metrics/metrics_pref_names.h',
53         'metrics/metrics_provider.cc',
54         'metrics/metrics_provider.h',
55         'metrics/metrics_reporting_scheduler.cc',
56         'metrics/metrics_reporting_scheduler.h',
57         'metrics/metrics_service.cc',
58         'metrics/metrics_service.h',
59         'metrics/metrics_service_accessor.cc',
60         'metrics/metrics_service_accessor.h',
61         'metrics/metrics_service_client.cc',
62         'metrics/metrics_service_client.h',
63         'metrics/metrics_state_manager.cc',
64         'metrics/metrics_state_manager.h',
65         'metrics/metrics_switches.cc',
66         'metrics/metrics_switches.h',
67         'metrics/persisted_logs.cc',
68         'metrics/persisted_logs.h',
69       ],
70       'conditions': [
71         ['chromeos==1', {
72           'dependencies': [
73             'metrics_serialization',
74           ],
75         }],
76         ['OS=="win"', {
77           'sources!': [
78             'metrics/machine_id_provider_stub.cc',
79           ],
80         }],
81       ],
82     },
83     {
84       # GN version: //components/metrics:gpu
85       'target_name': 'metrics_gpu',
86       'type': 'static_library',
87       'include_dirs': [
88         '..',
89       ],
90       'dependencies': [
91         '../base/base.gyp:base',
92         '../content/content.gyp:content_browser',
93         '../ui/gfx/gfx.gyp:gfx',
94         'component_metrics_proto',
95         'metrics',
96       ],
97       'sources': [
98         'metrics/gpu/gpu_metrics_provider.cc',
99         'metrics/gpu/gpu_metrics_provider.h',
100       ],
101     },
102     {
103       # GN version: //components/metrics:net
104       'target_name': 'metrics_net',
105       'type': 'static_library',
106       'include_dirs': [
107         '..',
108       ],
109       'dependencies': [
110         '../base/base.gyp:base',
111         '../net/net.gyp:net',
112         '../url/url.gyp:url_lib',
113         'component_metrics_proto',
114         'metrics',
115       ],
116       'sources': [
117         'metrics/net/network_metrics_provider.cc',
118         'metrics/net/network_metrics_provider.h',
119         'metrics/net/net_metrics_log_uploader.cc',
120         'metrics/net/net_metrics_log_uploader.h',
121         'metrics/net/wifi_access_point_info_provider.cc',
122         'metrics/net/wifi_access_point_info_provider.h',
123         'metrics/net/wifi_access_point_info_provider_chromeos.cc',
124         'metrics/net/wifi_access_point_info_provider_chromeos.h',
125       ],
126     },
127     {
128       # GN version: //components/metrics:profiler
129       'target_name': 'metrics_profiler',
130       'type': 'static_library',
131       'include_dirs': [
132         '..',
133       ],
134       'dependencies': [
135         '../content/content.gyp:content_browser',
136         '../content/content.gyp:content_common',
137         'component_metrics_proto',
138         'metrics',
139         'variations',
140       ],
141       'export_dependent_settings': [
142         'component_metrics_proto',
143       ],
144       'sources': [
145         'metrics/profiler/profiler_metrics_provider.cc',
146         'metrics/profiler/profiler_metrics_provider.h',
147         'metrics/profiler/tracking_synchronizer.cc',
148         'metrics/profiler/tracking_synchronizer.h',
149         'metrics/profiler/tracking_synchronizer_observer.h',
150       ],
151     },
152     {
153       # Protobuf compiler / generator for UMA (User Metrics Analysis).
154       #
155       # GN version: //components/metrics/proto:proto
156       'target_name': 'component_metrics_proto',
157       'type': 'static_library',
158       'sources': [
159         'metrics/proto/cast_logs.proto',
160         'metrics/proto/chrome_user_metrics_extension.proto',
161         'metrics/proto/histogram_event.proto',
162         'metrics/proto/omnibox_event.proto',
163         'metrics/proto/omnibox_input_type.proto',
164         'metrics/proto/perf_data.proto',
165         'metrics/proto/profiler_event.proto',
166         'metrics/proto/sampled_profile.proto',
167         'metrics/proto/system_profile.proto',
168         'metrics/proto/user_action_event.proto',
169       ],
170       'variables': {
171         'proto_in_dir': 'metrics/proto',
172         'proto_out_dir': 'components/metrics/proto',
173       },
174       'includes': [ '../build/protoc.gypi' ],
175     },
176     {
177       # TODO(isherman): Remove all //chrome dependencies on this target, and
178       # merge the files in this target with components_unittests.
179       # GN version: //components/metrics:test_support
180       'target_name': 'metrics_test_support',
181       'type': 'static_library',
182       'include_dirs': [
183         '..',
184       ],
185       'dependencies': [
186         'component_metrics_proto',
187         'metrics',
188       ],
189       'export_dependent_settings': [
190         'component_metrics_proto',
191       ],
192       'sources': [
193         'metrics/test_metrics_service_client.cc',
194         'metrics/test_metrics_service_client.h',
195       ],
196     },
197   ],
198   'conditions': [
199     ['OS=="linux"', {
200       'targets': [
201         {
202           'target_name': 'metrics_serialization',
203           'type': 'static_library',
204           'sources': [
205             'metrics/serialization/serialization_utils.cc',
206             'metrics/serialization/serialization_utils.h',
207             'metrics/serialization/metric_sample.cc',
208             'metrics/serialization/metric_sample.h',
209           ],
210           'dependencies': [
211             '../base/base.gyp:base',
212           ],
213         },
214       ],
215     }],
216   ],