chromium/components/ukm/debug/BUILD.gn

# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//ui/webui/resources/tools/build_webui.gni")

source_set("util") {
  sources = [
    "ukm_debug_data_extractor.cc",
    "ukm_debug_data_extractor.h",
  ]
  deps = [
    "//base",
    "//components/ukm",
    "//services/metrics/public/cpp:ukm_builders",
  ]
}

build_webui("build") {
  grd_prefix = "ukm"

  static_files = [
    "ukm_internals.css",
    "ukm_internals.html",
  ]

  non_web_component_files = [ "ukm_internals.ts" ]

  ts_deps = [ "//ui/webui/resources/js:build_ts" ]

  webui_context_type = "trusted"

  grit_output_dir = "$root_gen_dir/components"
}