1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51

content / browser / resources / traces_internals / BUILD.gn [blame]

# Copyright 2023 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")

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

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

  non_web_component_files = [
    "app.ts",
    "app.html.ts",
    "trace_report_browser_proxy.ts",
    "trace_report_list.ts",
    "trace_report_list.html.ts",
    "trace_report.ts",
    "trace_report.html.ts",
    "tracing_scenarios_config.html.ts",
    "tracing_scenarios_config.ts",
  ]

  css_files = [
    "app.css",
    "trace_report_list.css",
    "trace_report.css",
    "tracing_scenarios_config.css",
  ]

  icons_html_files = [ "icons.html" ]
  html_to_wrapper_template = "detect"

  ts_deps = [
    "//third_party/lit/v3_0:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]

  webui_context_type = "trusted"

  mojo_files_deps =
      [ "//content/browser/tracing/trace_report:mojo_bindings_ts__generator" ]
  mojo_files = [ "$root_gen_dir/content/browser/tracing/trace_report/trace_report.mojom-webui.ts" ]

  grit_output_dir = "$root_gen_dir/content"
}