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/sampled_profile.proto', | 47 'metrics/proto/sampled_profile.proto', |
41 'metrics/proto/system_profile.proto', | 48 'metrics/proto/system_profile.proto', |
42 'metrics/proto/user_action_event.proto', | 49 'metrics/proto/user_action_event.proto', |
43 ], | 50 ], |
44 'variables': { | 51 'variables': { |
45 'proto_in_dir': 'metrics/proto', | 52 'proto_in_dir': 'metrics/proto', |
46 'proto_out_dir': 'components/metrics/proto', | 53 'proto_out_dir': 'components/metrics/proto', |
47 }, | 54 }, |
48 'includes': [ '../build/protoc.gypi' ], | 55 'includes': [ '../build/protoc.gypi' ], |
49 }, | 56 }, |
50 ], | 57 ], |
| 58 'conditions': [ |
| 59 ['chromeos==1', { |
| 60 'targets': [ |
| 61 { |
| 62 'target_name': 'metrics_chromeos', |
| 63 'type': 'static_library', |
| 64 'sources': [ |
| 65 'metrics/chromeos/serialization_utils.cc', |
| 66 'metrics/chromeos/serialization_utils.h', |
| 67 'metrics/chromeos/metric_sample.cc', |
| 68 'metrics/chromeos/metric_sample.h', |
| 69 ], |
| 70 'dependencies': [ |
| 71 '../base/base.gyp:base', |
| 72 ], |
| 73 }, |
| 74 ], |
| 75 }], |
| 76 ], |
51 } | 77 } |
OLD | NEW |