naiveproxy/services/metrics/public/cpp/BUILD.gn

66 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-01-28 19:30:36 +03:00
# Copyright 2017 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.
import("//mojo/public/tools/bindings/mojom.gni")
component("metrics_cpp") {
sources = [
"metrics_export.h",
"mojo_ukm_recorder.cc",
"mojo_ukm_recorder.h",
"ukm_entry_builder.cc",
"ukm_entry_builder.h",
"ukm_entry_builder_base.cc",
"ukm_entry_builder_base.h",
"ukm_recorder.cc",
"ukm_recorder.h",
"ukm_source_id.cc",
"ukm_source_id.h",
]
defines = [ "METRICS_IMPLEMENTATION" ]
public_deps = [
"//base",
"//services/metrics/public/interfaces",
"//url",
]
deps = [
"//mojo/public/cpp/bindings",
]
}
action("gen_ukm_builders") {
script = "//tools/metrics/ukm/gen_builders.py"
sources = [
"//tools/metrics/ukm/ukm.xml",
]
outdir = "$target_gen_dir"
outputs = [
outdir + "/ukm_builders.cc",
outdir + "/ukm_builders.h",
]
args = [
"--input",
rebase_path(sources[0], root_build_dir),
"--output",
rebase_path(outdir, root_build_dir),
]
}
static_library("ukm_builders") {
sources = get_target_outputs(":gen_ukm_builders")
deps = [
":gen_ukm_builders",
":metrics_cpp",
"//base",
]
}