| # 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") |
| |
| group("closure_compile") { |
| deps = [ |
| ":closure_compile_local", |
| "hd_iron_icon:closure_compile", |
| "oobe_carousel:closure_compile", |
| "oobe_i18n_behavior:closure_compile", |
| "oobe_slide:closure_compile", |
| "progress_list_item:closure_compile", |
| "throbber_notice:closure_compile", |
| ] |
| } |
| |
| js_type_check("closure_compile_local") { |
| deps = [ |
| ":fake_oobe", |
| ":html-echo", |
| ":login_screen_behavior", |
| ":multi_step_behavior", |
| ":oobe_buttons", |
| ":oobe_dialog_host_behavior", |
| ":oobe_modal_dialog", |
| ":oobe_types", |
| ] |
| } |
| |
| ############################### |
| # Closure compiler libraries below |
| |
| js_library("oobe_types") { |
| } |
| |
| # This is special file to be used as a substutute of Oobe object for closure |
| # compilation until we make real one closure compile. |
| # TODO (https://crbug.com/950198) |
| js_library("fake_oobe") { |
| deps = [ |
| ":oobe_types", |
| "//ui/login:display_manager_types", |
| "//ui/webui/resources/js:util", |
| ] |
| } |
| |
| js_library("login_screen_behavior") { |
| deps = [ |
| ":fake_oobe", |
| "//ui/login:display_manager_types", |
| ] |
| } |
| |
| js_library("multi_step_behavior") { |
| } |
| |
| js_library("oobe_buttons") { |
| deps = [ "oobe_i18n_behavior:oobe_i18n_behavior" ] |
| } |
| |
| js_library("oobe_dialog_host_behavior") { |
| } |
| |
| js_library("oobe_modal_dialog") { |
| deps = [ "oobe_i18n_behavior:oobe_i18n_behavior" ] |
| } |
| |
| js_library("html-echo") { |
| } |