chromium/ash/webui/vc_background_ui/resources/BUILD.gn

# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_chromeos_ash)

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

  static_files = [
    "vc_background_ui_app_icon_128.png",
    "vc_background_ui_app_icon_256.png",

    "index.html",
  ]

  web_component_files = [
    "js/vc_background_app.ts",
    "js/vc_background_breadcrumb_element.ts",
  ]

  non_web_component_files = [ "vc_background_ui.ts" ]

  ts_composite = true

  ts_definitions = [ "//tools/typescript/definitions/metrics_private.d.ts" ]

  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//ash/webui/common/resources/personalization:build_ts",
    "//ash/webui/common/resources/sea_pen:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/cr_components/color_change_listener:build_ts",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]
  ts_extra_deps = [ "//ash/webui/common/resources:generate_definitions" ]

  webui_context_type = "trusted"
  grit_output_dir = "$root_gen_dir/ash/webui"
}