• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//ui/webui/resources/tools/build_webui.gni")
6
7build_webui("build") {
8  grd_prefix = "metrics_internals"
9
10  static_files = [ "metrics_internals.html" ]
11
12  web_component_files = [ "app.ts" ]
13  non_web_component_files = [
14    "browser_proxy.ts",
15    "log_utils.ts",
16    "metrics_internals.ts",
17  ]
18
19  if (is_chromeos_ash) {
20    non_web_component_files += [ "structured/structured_utils.ts" ]
21  }
22
23  html_to_wrapper_template = "native"
24
25  ts_composite = true
26  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
27  ts_deps = [
28    "//ui/webui/resources/cr_elements:build_ts",
29    "//ui/webui/resources/js:build_ts",
30  ]
31
32  grit_output_dir = "$root_gen_dir/components"
33}
34
35static_library("debug") {
36  sources = [
37    "metrics_internals_utils.cc",
38    "metrics_internals_utils.h",
39  ]
40
41  deps = [
42    "//base",
43    "//components/metrics",
44    "//components/metrics_services_manager",
45    "//components/variations",
46    "//components/variations/service",
47  ]
48}
49