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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'metrics', | 8 'target_name': 'metrics', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'include_dirs': [ | 10 'include_dirs': [ |
11 '..', | 11 '..', |
12 ], | 12 ], |
13 'dependencies': [ | 13 'dependencies': [ |
14 '../base/base.gyp:base', | 14 '../base/base.gyp:base', |
15 'component_metrics_proto', | 15 'component_metrics_proto', |
16 ], | 16 ], |
17 'sources': [ | 17 'sources': [ |
18 'metrics/metrics_hashes.cc', | 18 'metrics/metrics_hashes.cc', |
19 'metrics/metrics_hashes.h', | 19 'metrics/metrics_hashes.h', |
20 'metrics/metrics_log_base.cc', | 20 'metrics/metrics_log_base.cc', |
21 'metrics/metrics_log_base.h', | 21 'metrics/metrics_log_base.h', |
22 'metrics/metrics_log_manager.cc', | 22 'metrics/metrics_log_manager.cc', |
23 'metrics/metrics_log_manager.h', | 23 'metrics/metrics_log_manager.h', |
24 'metrics/metrics_pref_names.cc', | 24 'metrics/metrics_pref_names.cc', |
25 'metrics/metrics_pref_names.h', | 25 'metrics/metrics_pref_names.h', |
26 'metrics/persisted_logs.cc', | 26 'metrics/persisted_logs.cc', |
27 'metrics/persisted_logs.h', | 27 'metrics/persisted_logs.h', |
28 ], | 28 ], |
| 29 'conditions': [ |
| 30 ['chromeos==1', { |
| 31 'dependencies': [ |
| 32 'metrics_chromeos', |
| 33 ], |
| 34 }], |
| 35 ], |
29 }, | 36 }, |
30 { | 37 { |
31 # Protobuf compiler / generator for UMA (User Metrics Analysis). | 38 # Protobuf compiler / generator for UMA (User Metrics Analysis). |
32 'target_name': 'component_metrics_proto', | 39 'target_name': 'component_metrics_proto', |
33 'type': 'static_library', | 40 'type': 'static_library', |
34 'sources': [ | 41 'sources': [ |
35 'metrics/proto/chrome_user_metrics_extension.proto', | 42 'metrics/proto/chrome_user_metrics_extension.proto', |
36 'metrics/proto/histogram_event.proto', | 43 'metrics/proto/histogram_event.proto', |
37 'metrics/proto/omnibox_event.proto', | 44 'metrics/proto/omnibox_event.proto', |
38 'metrics/proto/perf_data.proto', | 45 'metrics/proto/perf_data.proto', |
39 'metrics/proto/profiler_event.proto', | 46 'metrics/proto/profiler_event.proto', |
40 'metrics/proto/system_profile.proto', | 47 'metrics/proto/system_profile.proto', |
41 'metrics/proto/user_action_event.proto', | 48 'metrics/proto/user_action_event.proto', |
42 ], | 49 ], |
43 'variables': { | 50 'variables': { |
44 'proto_in_dir': 'metrics/proto', | 51 'proto_in_dir': 'metrics/proto', |
45 'proto_out_dir': 'components/metrics/proto', | 52 'proto_out_dir': 'components/metrics/proto', |
46 }, | 53 }, |
47 'includes': [ '../build/protoc.gypi' ], | 54 'includes': [ '../build/protoc.gypi' ], |
48 }, | 55 }, |
| 56 { |
| 57 'target_name': 'metrics_chromeos', |
| 58 'type': 'static_library', |
| 59 'sources':[ |
| 60 'metrics/chromeos/serialization_utils.cc', |
| 61 'metrics/chromeos/serialization_utils.h', |
| 62 'metrics/chromeos/metric_sample.cc', |
| 63 'metrics/chromeos/metric_sample.h', |
| 64 ], |
| 65 'dependencies': [ |
| 66 '../base/base.gyp:base', |
| 67 ], |
| 68 }, |
49 ], | 69 ], |
50 } | 70 } |
OLD | NEW |