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