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