Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / components / metrics / BUILD.gn
blobae31a2463dbd5fa78b3c9dc41e1a67e495c2acf3
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     "clean_exit_beacon.cc",
9     "clean_exit_beacon.h",
10     "client_info.cc",
11     "client_info.h",
12     "cloned_install_detector.cc",
13     "cloned_install_detector.h",
14     "compression_utils.cc",
15     "compression_utils.h",
16     "daily_event.cc",
17     "daily_event.h",
18     "machine_id_provider.h",
19     "machine_id_provider_stub.cc",
20     "machine_id_provider_win.cc",
21     "metrics_hashes.cc",
22     "metrics_hashes.h",
23     "metrics_log.cc",
24     "metrics_log.h",
25     "metrics_log_manager.cc",
26     "metrics_log_manager.h",
27     "metrics_log_uploader.cc",
28     "metrics_log_uploader.h",
29     "metrics_pref_names.cc",
30     "metrics_pref_names.h",
31     "metrics_provider.cc",
32     "metrics_provider.h",
33     "metrics_reporting_scheduler.cc",
34     "metrics_reporting_scheduler.h",
35     "metrics_service.cc",
36     "metrics_service.h",
37     "metrics_service_accessor.cc",
38     "metrics_service_accessor.h",
39     "metrics_service_client.cc",
40     "metrics_service_client.h",
41     "metrics_state_manager.cc",
42     "metrics_state_manager.h",
43     "metrics_switches.cc",
44     "metrics_switches.h",
45     "persisted_logs.cc",
46     "persisted_logs.h",
47   ]
49   public_deps = [
50     "//components/metrics/proto",
51   ]
52   deps = [
53     "//base",
54     "//components/variations",
55     "//third_party/zlib",
56   ]
58   if (is_chromeos) {
59     deps += [ ":serialization" ]
60   }
63 # GYP version: components/metrics.gypi:metrics_gpu
64 source_set("gpu") {
65   sources = [
66     "gpu/gpu_metrics_provider.cc",
67     "gpu/gpu_metrics_provider.h",
68   ]
70   public_deps = [
71     ":metrics",
72   ]
73   deps = [
74     "//gpu/config",
75   ]
78 # GYP version: components/metrics.gypi:metrics_net
79 static_library("net") {
80   sources = [
81     "net/network_metrics_provider.cc",
82     "net/network_metrics_provider.h",
83     "net/net_metrics_log_uploader.cc",
84     "net/net_metrics_log_uploader.h",
85     "net/wifi_access_point_info_provider.cc",
86     "net/wifi_access_point_info_provider.h",
87     "net/wifi_access_point_info_provider_chromeos.cc",
88     "net/wifi_access_point_info_provider_chromeos.h",
89   ]
91   public_deps = [
92     ":metrics",
93   ]
94   deps = [
95     "//net",
96   ]
99 # GYP version: components/metrics.gypi:metrics_profiler
100 source_set("profiler") {
101   sources = [
102     "profiler/profiler_metrics_provider.cc",
103     "profiler/profiler_metrics_provider.h",
104     "profiler/tracking_synchronizer.cc",
105     "profiler/tracking_synchronizer.h",
106     "profiler/tracking_synchronizer_observer.h",
107   ]
109   public_deps = [
110     ":metrics",
111   ]
112   deps = [
113     "//base",
114     "//content/public/browser",
115   ]
118 # GYP version: components/metrics.gypi:metrics_test_support
119 static_library("test_support") {
120   sources = [
121     "test_metrics_service_client.cc",
122     "test_metrics_service_client.h",
123   ]
125   public_deps = [
126     ":metrics",
127   ]
130 if (is_linux) {
131   # GYP version: components/metrics.gypi:metrics_serialization
132   source_set("serialization") {
133     sources = [
134       "serialization/serialization_utils.cc",
135       "serialization/serialization_utils.h",
136       "serialization/metric_sample.cc",
137       "serialization/metric_sample.h",
138     ]
139     deps = [ "//base" ]
140   }
143 source_set("unit_tests") {
144   testonly = true
145   sources = [
146     "compression_utils_unittest.cc",
147     "daily_event_unittest.cc",
148     "machine_id_provider_win_unittest.cc",
149     "metrics_hashes_unittest.cc",
150     "metrics_log_manager_unittest.cc",
151     "metrics_log_unittest.cc",
152     "metrics_reporting_scheduler_unittest.cc",
153     "metrics_service_unittest.cc",
154     "metrics_state_manager_unittest.cc",
155     "persisted_logs_unittest.cc",
156     "profiler/profiler_metrics_provider_unittest.cc",
157   ]
159   deps = [
160     ":metrics",
161     "//base/test:test_support",
162     "//testing/gtest",
163   ]
166 # TODO(GYP): metrics_chromeos