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 ], | 24 ], |
25 'conditions': [ | |
26 ['chromeos==1', { | |
27 'dependencies': [ | |
28 'metrics_chromeos', | |
29 ], | |
Alexei Svitkine (slow)
2014/05/15 13:43:26
Nit: Bad indentation.
bsimonnet
2014/05/15 19:23:40
Done.
| |
30 }, | |
31 ], | |
32 ], | |
25 }, | 33 }, |
26 { | 34 { |
27 # Protobuf compiler / generator for UMA (User Metrics Analysis). | 35 # Protobuf compiler / generator for UMA (User Metrics Analysis). |
28 'target_name': 'component_metrics_proto', | 36 'target_name': 'component_metrics_proto', |
29 'type': 'static_library', | 37 'type': 'static_library', |
30 'sources': [ | 38 'sources': [ |
31 'metrics/proto/chrome_user_metrics_extension.proto', | 39 'metrics/proto/chrome_user_metrics_extension.proto', |
32 'metrics/proto/histogram_event.proto', | 40 'metrics/proto/histogram_event.proto', |
33 'metrics/proto/omnibox_event.proto', | 41 'metrics/proto/omnibox_event.proto', |
34 'metrics/proto/perf_data.proto', | 42 'metrics/proto/perf_data.proto', |
35 'metrics/proto/profiler_event.proto', | 43 'metrics/proto/profiler_event.proto', |
36 'metrics/proto/system_profile.proto', | 44 'metrics/proto/system_profile.proto', |
37 'metrics/proto/user_action_event.proto', | 45 'metrics/proto/user_action_event.proto', |
38 ], | 46 ], |
39 'variables': { | 47 'variables': { |
40 'proto_in_dir': 'metrics/proto', | 48 'proto_in_dir': 'metrics/proto', |
41 'proto_out_dir': 'components/metrics/proto', | 49 'proto_out_dir': 'components/metrics/proto', |
42 }, | 50 }, |
43 'includes': [ '../build/protoc.gypi' ], | 51 'includes': [ '../build/protoc.gypi' ], |
44 }, | 52 }, |
45 ], | 53 { |
54 'target_name': 'metrics_chromeos', | |
55 'type': 'static_library', | |
56 'sources':[ | |
57 'metrics/chromeos/metrics_utils.cc', | |
58 'metrics/chromeos/metrics_utils.h', | |
59 'metrics/chromeos/metric_sample.cc', | |
60 'metrics/chromeos/metric_sample.h', | |
61 ], | |
62 'dependencies': [ | |
63 '../base/base.gyp:base', | |
64 ], | |
65 }, | |
66 ], | |
46 } | 67 } |
OLD | NEW |