Index: base/metrics/BUILD.gn |
diff --git a/base/metrics/BUILD.gn b/base/metrics/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..804e59be9ee743114336296e96c7c626cc3b0c33 |
--- /dev/null |
+++ b/base/metrics/BUILD.gn |
@@ -0,0 +1,49 @@ |
+# Copyright (c) 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+source_set("metrics") { |
+ sources = [ |
+ "bucket_ranges.cc", |
+ "bucket_ranges.h", |
+ "field_trial.cc", |
+ "field_trial.h", |
+ "histogram.cc", |
+ "histogram.h", |
+ "histogram_base.cc", |
+ "histogram_base.h", |
+ "histogram_delta_serialization.", |
+ "histogram_delta_serialization.cc", |
+ "histogram_flattener.h", |
+ "histogram_macros.h", |
+ "histogram_samples.cc", |
+ "histogram_samples.h", |
+ "histogram_snapshot_manager.cc", |
+ "histogram_snapshot_manager.h", |
+ "sample_map.cc", |
+ "sample_map.h", |
+ "sample_vector.cc", |
+ "sample_vector.h", |
+ "sparse_histogram.cc", |
+ "sparse_histogram.h", |
+ "statistics_recorder.cc", |
+ "statistics_recorder.h", |
+ "user_metrics.cc", |
+ "user_metrics.h", |
+ "user_metrics_action.h", |
+ ] |
+ |
+ if (is_nacl) { |
+ sources -= [ "field_trial.cc" ] |
+ } |
+ |
+ defines = [ "BASE_IMPLEMENTATION" ] |
+ |
+ deps = [ |
+ "//base/debug", |
+ "//base/json", |
+ "//base/memory", |
+ ] |
+ |
+ visibility = [ "//base/*" ] |
+} |