Revert of ui: Clean up damaged rects and clear them after painting. (patchset #2...
[chromium-blink-merge.git] / components / metrics / BUILD.gn
blob1c7301ca2be2a061aca4d50ca7c075430934d326
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.
5 # GYP version: components/metrics.gypi:metrics
6 source_set("metrics") {
7   sources = [
8     "call_stack_profile_metrics_provider.cc",
9     "call_stack_profile_metrics_provider.h",
10     "clean_exit_beacon.cc",
11     "clean_exit_beacon.h",
12     "client_info.cc",
13     "client_info.h",
14     "cloned_install_detector.cc",
15     "cloned_install_detector.h",
16     "compression_utils.cc",
17     "compression_utils.h",
18     "daily_event.cc",
19     "daily_event.h",
20     "histogram_encoder.cc",
21     "histogram_encoder.h",
22     "machine_id_provider.h",
23     "machine_id_provider_stub.cc",
24     "machine_id_provider_win.cc",
25     "metrics_hashes.cc",
26     "metrics_hashes.h",
27     "metrics_log.cc",
28     "metrics_log.h",
29     "metrics_log_manager.cc",
30     "metrics_log_manager.h",
31     "metrics_log_uploader.cc",
32     "metrics_log_uploader.h",
33     "metrics_pref_names.cc",
34     "metrics_pref_names.h",
35     "metrics_provider.cc",
36     "metrics_provider.h",
37     "metrics_reporting_scheduler.cc",
38     "metrics_reporting_scheduler.h",
39     "metrics_service.cc",
40     "metrics_service.h",
41     "metrics_service_accessor.cc",
42     "metrics_service_accessor.h",
43     "metrics_service_client.cc",
44     "metrics_service_client.h",
45     "metrics_state_manager.cc",
46     "metrics_state_manager.h",
47     "metrics_switches.cc",
48     "metrics_switches.h",
49     "persisted_logs.cc",
50     "persisted_logs.h",
51     "url_constants.cc",
52     "url_constants.h",
53   ]
55   public_deps = [
56     "//components/metrics/proto",
57   ]
58   deps = [
59     "//base",
60     "//base:i18n",
61     "//base:prefs",
62     "//components/variations",
63     "//third_party/zlib",
64   ]
66   if (is_chromeos) {
67     deps += [ ":serialization" ]
68   }
70   if (is_win) {
71     sources -= [ "machine_id_provider_stub.cc" ]
72   }
75 # GYP version: components/metrics.gypi:metrics_gpu
76 source_set("gpu") {
77   sources = [
78     "gpu/gpu_metrics_provider.cc",
79     "gpu/gpu_metrics_provider.h",
80   ]
82   public_deps = [
83     ":metrics",
84   ]
85   deps = [
86     "//base",
87     "//content/public/browser",
88     "//gpu/config",
89     "//ui/gfx",
90   ]
93 # GYP version: components/metrics.gypi:metrics_net
94 static_library("net") {
95   sources = [
96     "net/net_metrics_log_uploader.cc",
97     "net/net_metrics_log_uploader.h",
98     "net/network_metrics_provider.cc",
99     "net/network_metrics_provider.h",
100     "net/wifi_access_point_info_provider.cc",
101     "net/wifi_access_point_info_provider.h",
102     "net/wifi_access_point_info_provider_chromeos.cc",
103     "net/wifi_access_point_info_provider_chromeos.h",
104   ]
106   public_deps = [
107     ":metrics",
108   ]
109   deps = [
110     "//base",
111     "//net",
112     "//url",
113   ]
116 # GYP version: components/metrics.gypi:metrics_profiler
117 source_set("profiler") {
118   sources = [
119     "profiler/profiler_metrics_provider.cc",
120     "profiler/profiler_metrics_provider.h",
121     "profiler/tracking_synchronizer.cc",
122     "profiler/tracking_synchronizer.h",
123     "profiler/tracking_synchronizer_observer.h",
124   ]
126   public_deps = [
127     ":metrics",
128   ]
129   deps = [
130     "//base",
131     "//components/variations",
132     "//content/public/browser",
133     "//content/public/common",
134   ]
137 # GYP version: components/metrics.gypi:metrics_test_support
138 source_set("test_support") {
139   sources = [
140     "test_metrics_service_client.cc",
141     "test_metrics_service_client.h",
142   ]
144   public_deps = [
145     ":metrics",
146   ]
147   deps = [
148     "//base",
149   ]
152 if (is_linux) {
153   # GYP version: components/metrics.gypi:metrics_serialization
154   source_set("serialization") {
155     sources = [
156       "serialization/metric_sample.cc",
157       "serialization/metric_sample.h",
158       "serialization/serialization_utils.cc",
159       "serialization/serialization_utils.h",
160     ]
161     deps = [
162       "//base",
163     ]
164   }
167 source_set("unit_tests") {
168   testonly = true
169   sources = [
170     "compression_utils_unittest.cc",
171     "daily_event_unittest.cc",
172     "histogram_encoder_unittest.cc",
173     "machine_id_provider_win_unittest.cc",
174     "metrics_hashes_unittest.cc",
175     "metrics_log_manager_unittest.cc",
176     "metrics_log_unittest.cc",
177     "metrics_reporting_scheduler_unittest.cc",
178     "metrics_service_unittest.cc",
179     "metrics_state_manager_unittest.cc",
180     "persisted_logs_unittest.cc",
181     "profiler/profiler_metrics_provider_unittest.cc",
182     "profiler/tracking_synchronizer_unittest.cc",
183   ]
185   deps = [
186     ":metrics",
187     ":profiler",
188     ":test_support",
189     "//base:prefs_test_support",
190     "//base/test:test_support",
191     "//components/variations",
192     "//content/public/common",
193     "//testing/gtest",
194   ]
196 # TODO(GYP): metrics_chromeos