blob: 4eb9e731715f6142243234a6b42d37a3da14c5b9 [file] [log] [blame]
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chrome/test/base/js2gtest.gni")
import("//third_party/closure_compiler/compile_js.gni")
import("//tools/polymer/polymer.gni")
import("//ui/webui/resources/tools/js_modulizer.gni")
import("../oobe_auto_imports.gni")
group("closure_compile") {
deps = [
"behaviors:closure_compile",
"buttons:closure_compile",
"common_styles:closure_compile",
"dialogs:closure_compile",
"oobe_vars:closure_compile",
"progress_list_item:closure_compile",
# Local targets
":display_manager_types.m",
":gaia_button.m",
":gaia_dialog.m",
":gaia_header.m",
":gaia_input_form.m",
":hd_iron_icon.m",
":keyboard_utils_for_injection",
":keyboard_utils_for_injection.m",
":long_touch_detector.m",
":network_select_login.m",
":notification_card.m",
":oobe_a11y_option.m",
":oobe_apps_list.m",
":oobe_carousel.m",
":oobe_cr_lottie.m",
":oobe_i18n_dropdown.m",
":oobe_icons.m",
":oobe_network_icons.m",
":oobe_select.m",
":oobe_slide.m",
":oobe_types.m",
":security_token_pin.m",
":test_util.m",
":throbber_notice.m",
":web_view_helper.m",
":web_view_loader.m",
]
}
group("polymer3_elements") {
public_deps = [
"behaviors:modulize",
"buttons:polymer3_elements",
"common_styles:polymer3_elements",
"dialogs:polymer3_elements",
"oobe_vars:polymer3_elements",
"progress_list_item:polymer3_elements",
# Local targets
":gaia_button_module",
":gaia_dialog_module",
":gaia_header_module",
":gaia_input_form_module",
":hd_iron_icon_module",
":long_touch_detector_module",
":network_select_login_module",
":notification_card_module",
":oobe_a11y_option_module",
":oobe_a11y_option_module",
":oobe_apps_list_module",
":oobe_carousel_module",
":oobe_cr_lottie_module",
":oobe_i18n_dropdown_module",
":oobe_icons_module",
":oobe_icons_module",
":oobe_network_icons_module",
":oobe_slide_module",
":security_token_pin_module",
":throbber_notice_module",
] + [ ":modulize" ]
}
###############################
# Closure compiler libraries below
js_library("display_manager_types.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/display_manager_types.m.js" ]
deps = []
extra_deps = [ ":modulize" ]
}
js_library("gaia_button.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/gaia_button.m.js" ]
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
]
extra_deps = [ ":gaia_button_module" ]
}
js_library("gaia_dialog.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/gaia_dialog.m.js" ]
deps = [
":oobe_types.m",
"../../../gaia_auth_host:authenticator.m",
"./behaviors:oobe_dialog_host_behavior.m",
"./behaviors:oobe_i18n_behavior.m",
"./buttons:oobe_back_button.m",
"./buttons:oobe_text_button.m",
"./dialogs:oobe_content_dialog.m",
"//ui/webui/resources/js:cr.m",
"//ui/webui/resources/js:load_time_data.m",
]
extra_deps = [ ":gaia_dialog_module" ]
}
js_library("gaia_header.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/gaia_header.m.js" ]
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
extra_deps = [ ":gaia_header_module" ]
}
js_library("gaia_input_form.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/gaia_input_form.m.js" ]
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
extra_deps = [ ":gaia_input_form_module" ]
}
js_library("hd_iron_icon.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/hd_iron_icon.m.js" ]
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
extra_deps = [ ":hd_iron_icon_module" ]
}
js_library("keyboard_utils_for_injection.m") {
}
js_library("keyboard_utils_for_injection") {
}
js_library("long_touch_detector.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/long_touch_detector.m.js" ]
deps = []
extra_deps = [ ":long_touch_detector_module" ]
}
js_library("network_select_login.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/network_select_login.m.js" ]
deps = [
"../:cr_ui.m",
"//ui/webui/resources/cr_components/chromeos/network:network_select.m",
"//ui/webui/resources/cr_components/chromeos/network:onc_mojo.m",
"//ui/webui/resources/js:assert.m",
]
extra_deps = [ ":network_select_login_module" ]
}
js_library("notification_card.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/notification_card.m.js" ]
deps = []
extra_deps = [ ":notification_card_module" ]
}
js_library("oobe_a11y_option.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_a11y_option.m.js" ]
deps = []
extra_deps = [ ":oobe_a11y_option_module" ]
}
js_library("oobe_apps_list.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_apps_list.m.js" ]
deps = []
extra_deps = [ ":oobe_apps_list_module" ]
}
js_library("oobe_icons.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_icons.m.js" ]
deps = []
extra_deps = [ ":oobe_icons_module" ]
}
js_library("oobe_i18n_dropdown.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_i18n_dropdown.m.js" ]
deps = [
":oobe_select.m",
":oobe_types.m",
]
extra_deps = [ ":oobe_i18n_dropdown_module" ]
}
js_library("oobe_carousel.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_carousel.m.js" ]
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:load_time_data.m",
]
extra_deps = [ ":oobe_carousel_module" ]
}
js_library("oobe_cr_lottie.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_cr_lottie.m.js" ]
deps = [
"behaviors:oobe_i18n_behavior.m",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_lottie:cr_lottie.m",
]
extra_deps = [ ":oobe_cr_lottie_module" ]
}
js_library("oobe_network_icons.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_network_icons.m.js" ]
deps = []
extra_deps = [ ":oobe_network_icons_module" ]
}
js_library("oobe_select.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_select.m.js" ]
deps = []
extra_deps = [ ":modulize" ]
}
js_library("oobe_slide.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_slide.m.js" ]
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
extra_deps = [ ":oobe_slide_module" ]
}
js_library("oobe_types.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/oobe_types.m.js" ]
deps = []
extra_deps = [ ":modulize" ]
}
js_library("security_token_pin.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/security_token_pin.m.js" ]
deps = [
":oobe_types.m",
"./behaviors:oobe_i18n_behavior.m",
]
extra_deps = [ ":security_token_pin_module" ]
}
js_library("throbber_notice.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/throbber_notice.m.js" ]
deps = [
"./behaviors:oobe_i18n_behavior.m",
"//ui/webui/resources/cr_elements/chromeos:cros_color_overrides_module",
]
extra_deps = [ ":throbber_notice_module" ]
}
js_library("test_util.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/test_util.m.js" ]
deps = []
extra_deps = [ ":modulize" ]
}
js_library("web_view_helper.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/web_view_helper.m.js" ]
deps = []
extra_deps = [ ":modulize" ]
}
js_library("web_view_loader.m") {
sources = [ "$root_gen_dir/chrome/browser/resources/chromeos/login/components/web_view_loader.m.js" ]
deps = []
extra_deps = [ ":modulize" ]
}
polymer_modulizer("gaia_button") {
js_file = "gaia_button.js"
html_file = "gaia_button.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("gaia_dialog") {
js_file = "gaia_dialog.js"
html_file = "gaia_dialog.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("gaia_header") {
js_file = "gaia_header.js"
html_file = "gaia_header.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("gaia_input_form") {
js_file = "gaia_input_form.js"
html_file = "gaia_input_form.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("hd_iron_icon") {
js_file = "hd_iron_icon.js"
html_file = "hd_iron_icon.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("long_touch_detector") {
js_file = "long_touch_detector.js"
html_file = "long_touch_detector.html"
html_type = "dom-module"
}
polymer_modulizer("network_select_login") {
js_file = "network_select_login.js"
html_file = "network_select_login.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("notification_card") {
js_file = "notification_card.js"
html_file = "notification_card.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("oobe_a11y_option") {
js_file = "oobe_a11y_option.js"
html_file = "oobe_a11y_option.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("oobe_apps_list") {
js_file = "oobe_apps_list.js"
html_file = "oobe_apps_list.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
migrated_imports = oobe_migrated_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("oobe_icons") {
js_file = "oobe_icons.m.js"
html_file = "oobe_icons.html"
html_type = "iron-iconset"
}
polymer_modulizer("oobe_i18n_dropdown") {
js_file = "oobe_i18n_dropdown.js"
html_file = "oobe_i18n_dropdown.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("oobe_carousel") {
js_file = "oobe_carousel.js"
html_file = "oobe_carousel.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("oobe_cr_lottie") {
js_file = "oobe_cr_lottie.js"
html_file = "oobe_cr_lottie.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("oobe_network_icons") {
js_file = "oobe_network_icons.m.js"
html_file = "oobe_network_icons.html"
html_type = "iron-iconset"
}
polymer_modulizer("oobe_slide") {
js_file = "oobe_slide.js"
html_file = "oobe_slide.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("security_token_pin") {
js_file = "security_token_pin.js"
html_file = "security_token_pin.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
polymer_modulizer("throbber_notice") {
js_file = "throbber_notice.js"
html_file = "throbber_notice.html"
html_type = "dom-module"
auto_imports = oobe_auto_imports
namespace_rewrites = oobe_namespace_rewrites
}
js_modulizer("modulize") {
input_files = [
"display_manager_types.js",
"oobe_select.js",
"oobe_types.js",
"web_view_helper.js",
"web_view_loader.js",
"test_util.js",
]
namespace_rewrites = []
}