# 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("//mojo/public/tools/bindings/mojom.gni")
import("//ui/webui/resources/tools/build_webui.gni")
mojom("mojo_bindings") {
sources = [ "shopping_service.mojom" ]
webui_module_path = "chrome://resources/cr_components/commerce"
public_deps = [
"//mojo/public/mojom/base",
"//url/mojom:url_mojom_gurl",
]
}
build_webui("build") {
grd_prefix = "cr_components_commerce"
non_web_component_files = [ "browser_proxy.ts" ]
mojo_files_deps = [ ":mojo_bindings_ts__generator" ]
mojo_files = [ "$target_gen_dir/shopping_service.mojom-webui.ts" ]
ts_out_dir = "$root_gen_dir/ui/webui/resources/tsc/cr_components/commerce"
ts_composite = true
ts_deps = [
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "relative"
generate_grdp = true
grd_resource_path_prefix = rebase_path(".", "//ui/webui/resources")
}