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

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/closure_compiler/compile_js.gni")
import("//tools/polymer/css_to_wrapper.gni")
import("//tools/polymer/html_to_wrapper.gni")

js_type_check("closure_compile") {
  is_polymer3 = true
  deps = [
    ":account_manager_browser_proxy",
    ":account_manager_error_app",
    ":account_migration_welcome_app",
  ]
}

js_library("account_migration_welcome_app") {
  deps = [
    ":account_manager_browser_proxy",
    "//ash/webui/common/resources:assert",
    "//ash/webui/common/resources:load_time_data.m",
    "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
  ]
}

js_library("account_manager_error_app") {
  deps = [
    ":account_manager_browser_proxy",
    "//ash/webui/common/resources:assert",
    "//ash/webui/common/resources:load_time_data.m",
    "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
  ]
}

js_library("account_manager_browser_proxy") {
  deps = [ "//ash/webui/common/resources:cr_deprecated" ]
  externs_list = [ "$externs_path/chrome_send.js" ]
}

html_to_wrapper("html_wrapper_files") {
  in_files = [
    "account_migration_welcome_app.html",
    "account_manager_error_app.html",
  ]
  use_js = true
}

css_to_wrapper("css_wrapper_files") {
  in_files = [ "account_manager_shared.css" ]
  use_js = true
}