chromium/content/browser/resources/quota/BUILD.gn

# Copyright 2021 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 = "quota_internals"

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

  non_web_component_files = [
    "quota_internals.ts",
    "quota_internals_browser_proxy.ts",
  ]

  mojo_files_deps = [
    "//storage/browser/quota:mojo_bindings_ts__generator",
    "//third_party/blink/public/mojom/quota:quota_ts__generator",
  ]
  mojo_files = [
    "$root_gen_dir/storage/browser/quota/quota_internals.mojom-webui.ts",
    "$root_gen_dir/third_party/blink/public/mojom/quota/quota_types.mojom-webui.ts",
  ]

  ts_tsconfig_base = "tsconfig_base.json"
  ts_deps = [
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]

  webui_context_type = "trusted"
  grit_output_dir = "$root_gen_dir/content"
}