| # 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") |
| |
| build_webui("build") { |
| grd_prefix = "commerce_internals" |
| |
| static_files = [ |
| "commerce_internals.html", |
| "view_product.html", |
| ] |
| |
| css_files = [ |
| "app.css", |
| "eligibility_list.css", |
| "product_viewer/app.css", |
| "shared_style.css", |
| ] |
| |
| ts_files = [ |
| "app.html.ts", |
| "app.ts", |
| "commerce_internals_api_proxy.ts", |
| "eligibility_list.html.ts", |
| "eligibility_list.ts", |
| "product_specifications_set_list.html.ts", |
| "product_specifications_set_list.ts", |
| "product_viewer/app.html.ts", |
| "product_viewer/app.ts", |
| "subscription_list.html.ts", |
| "subscription_list.ts", |
| ] |
| |
| mojo_files_deps = [ |
| "//components/commerce/core/internals/mojom:mojo_bindings_ts__generator", |
| "//components/commerce/core/mojom:mojo_bindings_ts__generator", |
| ] |
| mojo_files = [ |
| "$root_gen_dir/components/commerce/core/internals/mojom/commerce_internals.mojom-webui.ts", |
| "$root_gen_dir/components/commerce/core/mojom/shared.mojom-webui.ts", |
| "$root_gen_dir/components/commerce/core/mojom/shopping_service.mojom-webui.ts", |
| ] |
| |
| ts_deps = [ |
| "//third_party/lit/v3_0:build_ts", |
| "//ui/webui/resources/cr_components/commerce:build_ts", |
| "//ui/webui/resources/js:build_ts", |
| "//ui/webui/resources/mojo:build_ts", |
| ] |
| |
| webui_context_type = "trusted" |
| grit_output_dir = "$root_gen_dir/components" |
| } |