chromium/chrome/browser/resources/privacy_sandbox/internals/BUILD.gn

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

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

  static_files = [
    "index.html",
    "style.css",
  ]

  web_component_files = [
    "content_setting_pattern_source.ts",
    "pref_display.ts",
    "value_display.ts",
    "mojo_timedelta.ts",
    "mojo_timestamp.ts",
    "cr_frame_list.ts",
  ]
  non_web_component_files = [ "index.ts" ]
  html_to_wrapper_template = "native"

  mojo_files_deps = [
    "//chrome/browser/ui/webui/privacy_sandbox:mojo_bindings_ts__generator",
    "//components/content_settings/core/common:content_settings_enums_ts__generator",
    "//components/content_settings/core/common:content_settings_types_ts__generator",
    "//components/content_settings/core/common:mojo_bindings_ts__generator",
  ]
  mojo_files = [
    "$root_gen_dir/components/content_settings/core/common/content_settings.mojom-webui.ts",
    "$root_gen_dir/components/content_settings/core/common/content_settings_enums.mojom-webui.ts",
    "$root_gen_dir/components/content_settings/core/common/content_settings_types.mojom-webui.ts",
    "$root_gen_dir/chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_internals.mojom-webui.ts",
  ]

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

  webui_context_type = "trusted"
  if (!is_android) {
    extra_grdp_files = [
        "$target_gen_dir/private_state_tokens/resources.grdp",
        "$target_gen_dir/related_website_sets/resources.grdp",
    ]
    extra_grdp_deps = [
        "private_state_tokens:build_grdp",
        "related_website_sets:build_grdp",
    ]
  }
}