# 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.css",
"commerce_internals.html",
"view_product.html",
]
non_web_component_files = [
"commerce_internals.ts",
"commerce_internals_api_proxy.ts",
"view_product.ts",
]
mojo_files_deps = [
"//components/commerce/core/internals/mojom:mojo_bindings_ts__generator",
"//ui/webui/resources/cr_components/commerce:mojo_bindings_ts__generator",
]
mojo_files = [
"$root_gen_dir/components/commerce/core/internals/mojom/commerce_internals.mojom-webui.ts",
"$root_gen_dir/ui/webui/resources/cr_components/commerce/shopping_service.mojom-webui.ts",
]
ts_deps = [
"//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"
}