chromium/chrome/browser/resources/chromeos/supervision/BUILD.gn

# 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/resources/tools/generate_grd.gni")

# grdp for resources shared by OOBE.
generate_grd("build_oobe_grdp") {
  out_grd = "$target_gen_dir/supervision_oobe_resources.grdp"
  grd_prefix = "supervision_oobe"
  input_files_base_dir = rebase_path(".", "//")
  input_files = [ "supervision_icon.png" ]
  resource_path_prefix = "images"
}

build_webui("build") {
  grd_prefix = "supervision"
  grd_resource_path_prefix = "supervision"
  static_files = [ "supervision_icon.png" ]

  web_component_files = [
    "supervised_user_error.ts",
    "supervised_user_offline.ts",
  ]

  ts_deps = [ "//third_party/polymer/v3_0:library" ]
  webui_context_type = "trusted"
}