OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 declare_args() { | 5 declare_args() { |
6 # Overrides os name in uma metrics log to "Blimp". | 6 # Overrides os name in uma metrics log to "Blimp". |
7 metrics_use_blimp = false | 7 metrics_use_blimp = false |
8 } | 8 } |
9 | 9 |
10 # These are only used by the blimp team, which has entirely migrated to gn, | 10 # These are only used by the blimp team, which has entirely migrated to gn, |
11 # so this logic is not replicated in the gyp file. | 11 # so this logic is not replicated in the gyp file. |
12 if (metrics_use_blimp) { | 12 if (metrics_use_blimp) { |
13 defines = [ "OVERRIDE_OS_NAME_TO_BLIMP" ] | 13 defines = [ "OVERRIDE_OS_NAME_TO_BLIMP" ] |
14 } | 14 } |
15 | 15 |
16 # GYP version: components/metrics.gypi:metrics | 16 # GYP version: components/metrics.gypi:metrics |
17 source_set("metrics") { | 17 static_library("metrics") { |
18 sources = [ | 18 sources = [ |
19 "call_stack_profile_metrics_provider.cc", | 19 "call_stack_profile_metrics_provider.cc", |
20 "call_stack_profile_metrics_provider.h", | 20 "call_stack_profile_metrics_provider.h", |
21 "clean_exit_beacon.cc", | 21 "clean_exit_beacon.cc", |
22 "clean_exit_beacon.h", | 22 "clean_exit_beacon.h", |
23 "client_info.cc", | 23 "client_info.cc", |
24 "client_info.h", | 24 "client_info.h", |
25 "cloned_install_detector.cc", | 25 "cloned_install_detector.cc", |
26 "cloned_install_detector.h", | 26 "cloned_install_detector.h", |
27 "daily_event.cc", | 27 "daily_event.cc", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 deps = [ | 123 deps = [ |
124 "//base", | 124 "//base", |
125 "//content/public/browser", | 125 "//content/public/browser", |
126 "//gpu/config", | 126 "//gpu/config", |
127 ] | 127 ] |
128 } | 128 } |
129 } | 129 } |
130 | 130 |
131 if (is_chromeos) { | 131 if (is_chromeos) { |
132 # GYP version: components/metrics.gypi:metrics_leak_detector | 132 # GYP version: components/metrics.gypi:metrics_leak_detector |
133 source_set("leak_detector") { | 133 static_library("leak_detector") { |
134 sources = [ | 134 sources = [ |
135 "leak_detector/call_stack_manager.cc", | 135 "leak_detector/call_stack_manager.cc", |
136 "leak_detector/call_stack_manager.h", | 136 "leak_detector/call_stack_manager.h", |
137 "leak_detector/call_stack_table.cc", | 137 "leak_detector/call_stack_table.cc", |
138 "leak_detector/call_stack_table.h", | 138 "leak_detector/call_stack_table.h", |
139 "leak_detector/custom_allocator.cc", | 139 "leak_detector/custom_allocator.cc", |
140 "leak_detector/custom_allocator.h", | 140 "leak_detector/custom_allocator.h", |
141 "leak_detector/leak_analyzer.cc", | 141 "leak_detector/leak_analyzer.cc", |
142 "leak_detector/leak_analyzer.h", | 142 "leak_detector/leak_analyzer.h", |
143 "leak_detector/leak_detector.cc", | 143 "leak_detector/leak_detector.cc", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 if (is_chromeos) { | 189 if (is_chromeos) { |
190 sources += [ | 190 sources += [ |
191 "net/wifi_access_point_info_provider_chromeos.cc", | 191 "net/wifi_access_point_info_provider_chromeos.cc", |
192 "net/wifi_access_point_info_provider_chromeos.h", | 192 "net/wifi_access_point_info_provider_chromeos.h", |
193 ] | 193 ] |
194 deps += [ "//chromeos" ] | 194 deps += [ "//chromeos" ] |
195 } | 195 } |
196 } | 196 } |
197 | 197 |
198 # GYP version: components/metrics.gypi:metrics_profiler | 198 # GYP version: components/metrics.gypi:metrics_profiler |
199 source_set("profiler") { | 199 static_library("profiler") { |
200 sources = [ | 200 sources = [ |
201 "profiler/profiler_metrics_provider.cc", | 201 "profiler/profiler_metrics_provider.cc", |
202 "profiler/profiler_metrics_provider.h", | 202 "profiler/profiler_metrics_provider.h", |
203 "profiler/tracking_synchronizer.cc", | 203 "profiler/tracking_synchronizer.cc", |
204 "profiler/tracking_synchronizer.h", | 204 "profiler/tracking_synchronizer.h", |
205 "profiler/tracking_synchronizer_delegate.h", | 205 "profiler/tracking_synchronizer_delegate.h", |
206 "profiler/tracking_synchronizer_observer.cc", | 206 "profiler/tracking_synchronizer_observer.cc", |
207 "profiler/tracking_synchronizer_observer.h", | 207 "profiler/tracking_synchronizer_observer.h", |
208 ] | 208 ] |
209 | 209 |
(...skipping 19 matching lines...) Expand all Loading... |
229 deps = [ | 229 deps = [ |
230 "//base", | 230 "//base", |
231 "//ui/display", | 231 "//ui/display", |
232 "//ui/gfx", | 232 "//ui/gfx", |
233 "//ui/gfx/geometry", | 233 "//ui/gfx/geometry", |
234 ] | 234 ] |
235 } | 235 } |
236 | 236 |
237 if (!is_ios) { | 237 if (!is_ios) { |
238 # GYP version: components/metrics.gypi:metrics_profiler_content | 238 # GYP version: components/metrics.gypi:metrics_profiler_content |
239 source_set("profiler_content") { | 239 static_library("profiler_content") { |
240 sources = [ | 240 sources = [ |
241 "profiler/content/content_tracking_synchronizer_delegate.cc", | 241 "profiler/content/content_tracking_synchronizer_delegate.cc", |
242 "profiler/content/content_tracking_synchronizer_delegate.h", | 242 "profiler/content/content_tracking_synchronizer_delegate.h", |
243 ] | 243 ] |
244 | 244 |
245 public_deps = [ | 245 public_deps = [ |
246 ":profiler", | 246 ":profiler", |
247 ] | 247 ] |
248 deps = [ | 248 deps = [ |
249 "//base", | 249 "//base", |
250 "//components/nacl/common:process_type", | 250 "//components/nacl/common:process_type", |
251 "//content/public/browser", | 251 "//content/public/browser", |
252 "//content/public/common", | 252 "//content/public/common", |
253 ] | 253 ] |
254 } | 254 } |
255 } else { | 255 } else { |
256 # GYP version: components/metrics.gypi:metrics_profiler_ios | 256 # GYP version: components/metrics.gypi:metrics_profiler_ios |
257 source_set("profiler_ios") { | 257 static_library("profiler_ios") { |
258 sources = [ | 258 sources = [ |
259 "profiler/ios/ios_tracking_synchronizer_delegate.cc", | 259 "profiler/ios/ios_tracking_synchronizer_delegate.cc", |
260 "profiler/ios/ios_tracking_synchronizer_delegate.h", | 260 "profiler/ios/ios_tracking_synchronizer_delegate.h", |
261 ] | 261 ] |
262 | 262 |
263 public_deps = [ | 263 public_deps = [ |
264 ":profiler", | 264 ":profiler", |
265 ] | 265 ] |
266 deps = [ | 266 deps = [ |
267 "//base", | 267 "//base", |
268 ] | 268 ] |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 # GYP version: components/metrics.gypi:metrics_test_support | 272 # GYP version: components/metrics.gypi:metrics_test_support |
273 source_set("test_support") { | 273 static_library("test_support") { |
274 testonly = true | 274 testonly = true |
275 sources = [ | 275 sources = [ |
276 "test_enabled_state_provider.cc", | 276 "test_enabled_state_provider.cc", |
277 "test_enabled_state_provider.h", | 277 "test_enabled_state_provider.h", |
278 "test_metrics_provider.cc", | 278 "test_metrics_provider.cc", |
279 "test_metrics_provider.h", | 279 "test_metrics_provider.h", |
280 "test_metrics_service_client.cc", | 280 "test_metrics_service_client.cc", |
281 "test_metrics_service_client.h", | 281 "test_metrics_service_client.h", |
282 ] | 282 ] |
283 | 283 |
284 public_deps = [ | 284 public_deps = [ |
285 ":metrics", | 285 ":metrics", |
286 ] | 286 ] |
287 deps = [ | 287 deps = [ |
288 "//base", | 288 "//base", |
289 ] | 289 ] |
290 } | 290 } |
291 | 291 |
292 if (is_linux) { | 292 if (is_linux) { |
293 # GYP version: components/metrics.gypi:metrics_serialization | 293 # GYP version: components/metrics.gypi:metrics_serialization |
294 source_set("serialization") { | 294 static_library("serialization") { |
295 sources = [ | 295 sources = [ |
296 "serialization/metric_sample.cc", | 296 "serialization/metric_sample.cc", |
297 "serialization/metric_sample.h", | 297 "serialization/metric_sample.h", |
298 "serialization/serialization_utils.cc", | 298 "serialization/serialization_utils.cc", |
299 "serialization/serialization_utils.h", | 299 "serialization/serialization_utils.h", |
300 ] | 300 ] |
301 deps = [ | 301 deps = [ |
302 "//base", | 302 "//base", |
303 ] | 303 ] |
304 } | 304 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 if (is_linux) { | 368 if (is_linux) { |
369 sources += [ "serialization/serialization_utils_unittest.cc" ] | 369 sources += [ "serialization/serialization_utils_unittest.cc" ] |
370 deps += [ ":serialization" ] | 370 deps += [ ":serialization" ] |
371 } | 371 } |
372 | 372 |
373 if (is_chromeos) { | 373 if (is_chromeos) { |
374 deps += [ ":leak_detector_unit_tests" ] | 374 deps += [ ":leak_detector_unit_tests" ] |
375 } | 375 } |
376 } | 376 } |
OLD | NEW |