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

71 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-02-02 13:49:39 +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 = [
"delegating_ukm_recorder.cc",
"delegating_ukm_recorder.h",
"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",
"//services/service_manager/public/cpp",
]
}
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",
outdir + "/ukm_decode.cc",
outdir + "/ukm_decode.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",
]
}