Index: components/metrics.gypi |
diff --git a/components/metrics.gypi b/components/metrics.gypi |
index 5c9b1f959e88a5b54c954faa348fa0519b538e87..354d5f5835f9c369da461945d16d92cfc39e8166 100644 |
--- a/components/metrics.gypi |
+++ b/components/metrics.gypi |
@@ -26,6 +26,13 @@ |
'metrics/persisted_logs.cc', |
'metrics/persisted_logs.h', |
], |
+ 'conditions': [ |
+ ['chromeos==1', { |
+ 'dependencies': [ |
+ 'metrics_chromeos', |
+ ], |
+ }], |
+ ], |
}, |
{ |
# Protobuf compiler / generator for UMA (User Metrics Analysis). |
@@ -48,4 +55,23 @@ |
'includes': [ '../build/protoc.gypi' ], |
}, |
], |
+ 'conditions': [ |
+ ['chromeos==1', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'metrics_chromeos', |
+ 'type': 'static_library', |
+ 'sources': [ |
+ 'metrics/chromeos/serialization_utils.cc', |
+ 'metrics/chromeos/serialization_utils.h', |
+ 'metrics/chromeos/metric_sample.cc', |
+ 'metrics/chromeos/metric_sample.h', |
+ ], |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ ], |
+ }, |
+ ], |
+ }], |
+ ], |
} |