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

# Copyright 2022 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 = "private_aggregation_internals"

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

  non_web_component_files = [
    "private_aggregation_internals.ts",
    "table_model.ts",
  ]

  web_component_files = [ "private_aggregation_internals_table.ts" ]

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

  webui_context_type = "trusted"

  private_aggregation_content_folder = "content/browser/private_aggregation"

  mojo_files = [ "$root_gen_dir/$private_aggregation_content_folder/private_aggregation_internals.mojom-webui.ts" ]

  mojo_files_deps =
      [ "//$private_aggregation_content_folder:mojo_bindings_ts__generator" ]

  grit_output_dir = "$root_gen_dir/content"
  html_to_wrapper_template = "native"
}