| # 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") |
| import("//ui/webui/webui_features.gni") |
| |
| assert(!is_android) |
| |
| build_webui("build") { |
| grd_prefix = "side_panel_shared" |
| grd_resource_path_prefix = "shared" |
| |
| ts_files = [ |
| "sp_empty_state.html.ts", |
| "sp_empty_state.ts", |
| "sp_footer.html.ts", |
| "sp_footer.ts", |
| "sp_heading.html.ts", |
| "sp_heading.ts", |
| "sp_list_item_badge.html.ts", |
| "sp_list_item_badge.ts", |
| ] |
| |
| css_files = [ |
| "sp_empty_state.css", |
| "sp_footer.css", |
| "sp_heading.css", |
| "sp_list_item_badge.css", |
| "sp_shared_style.css", |
| "sp_shared_style_lit.css", |
| "sp_shared_vars.css", |
| ] |
| |
| icons_html_files = [ "sp_icons.html" ] |
| |
| ts_composite = true |
| ts_tsconfig_base = "//tools/typescript/tsconfig_base_lit.json" |
| 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" |
| generate_code_cache = enable_webui_generate_code_cache |
| } |