chromium/chrome/browser/resources/side_panel/shared/BUILD.gn

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

assert(!is_android)

build_webui("build") {
  grd_prefix = "side_panel_shared"
  grd_resource_path_prefix = "shared"

  web_component_files = [
    "sp_empty_state.ts",
    "sp_footer.ts",
    "sp_heading.ts",
    "sp_list_item_badge.ts",
  ]

  css_files = [
    "sp_empty_state.css",
    "sp_footer.css",
    "sp_heading.css",
    "sp_shared_style.css",
    "sp_shared_style_lit.css",
    "sp_shared_vars.css",
  ]

  icons_html_files = [ "sp_icons.html" ]

  html_to_wrapper_template = "detect"

  ts_composite = true
  ts_deps = [
    "//third_party/lit/v3_0:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]

  # Used by both trusted and untrusted hosts so all imports in this folder
  # should be scheme-relative.
  webui_context_type = "relative"
}