chromium/ash/webui/mall/resources/BUILD.gn

# 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("//build/config/chromeos/ui_mode.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_chromeos_ash, "Mall is ChromeOS only")

build_webui("build") {
  static_files = [
    "images/mall_icon_192.png",
    "index.html",
  ]

  non_web_component_files = [ "index.ts" ]

  mojo_files_deps = [ "//ash/webui/mall:mojo_bindings_ts__generator" ]
  mojo_files = [ "$root_gen_dir/ash/webui/mall/mall_ui.mojom-webui.ts" ]

  ts_deps = [
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]

  grd_prefix = "ash_mall_cros_app"
  grit_output_dir = "$root_gen_dir/ash/webui"

  webui_context_type = "trusted"
}