forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GN Closure Compilation ui/webui/
This CL converts ui/webui/ to use GN for its Closure Compilation. For now this will run side-by-side with GYP, with the GYP compilation being removed once all clients are switched to GN. The compile_js.gni has been augmented with extra_sources support and the ability to type check a group of js_library targets. A PRESUBMIT which warns when BUILD.gn files are not updated has been added. Bug: 632206 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ibad3213eb67f5c0ea42555cc45126a00cbdb783e Reviewed-on: https://chromium-review.googlesource.com/942128 Commit-Queue: calamity <calamity@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#541316}
- Loading branch information
Showing
32 changed files
with
1,125 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2018 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("//third_party/closure_compiler/compile_js.gni") | ||
|
||
group("closure_compile") { | ||
deps = [ | ||
"cr_components:closure_compile", | ||
"cr_elements:closure_compile", | ||
"js:closure_compile", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2018 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("//third_party/closure_compiler/compile_js.gni") | ||
|
||
group("closure_compile") { | ||
deps = [ | ||
"certificate_manager:closure_compile", | ||
"chromeos:closure_compile", | ||
] | ||
} |
128 changes: 128 additions & 0 deletions
128
ui/webui/resources/cr_components/certificate_manager/BUILD.gn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# Copyright 2018 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("//third_party/closure_compiler/compile_js.gni") | ||
|
||
js_type_check("closure_compile") { | ||
deps = [ | ||
":ca_trust_edit_dialog", | ||
":certificate_delete_confirmation_dialog", | ||
":certificate_entry", | ||
":certificate_list", | ||
":certificate_manager", | ||
":certificate_manager_types", | ||
":certificate_password_decryption_dialog", | ||
":certificate_password_encryption_dialog", | ||
":certificate_subentry", | ||
":certificates_browser_proxy", | ||
":certificates_error_dialog", | ||
] | ||
} | ||
|
||
js_library("ca_trust_edit_dialog") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
"//ui/webui/resources/js:load_time_data", | ||
] | ||
} | ||
|
||
js_library("certificate_delete_confirmation_dialog") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
"//ui/webui/resources/js:load_time_data", | ||
] | ||
} | ||
|
||
js_library("certificate_entry") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
] | ||
} | ||
|
||
js_library("certificate_list") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificate_subentry", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
] | ||
} | ||
|
||
js_library("certificate_manager") { | ||
deps = [ | ||
":certificate_list", | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/js:assert", | ||
"//ui/webui/resources/js:load_time_data", | ||
"//ui/webui/resources/js:web_ui_listener_behavior", | ||
"//ui/webui/resources/js/cr/ui:focus_without_ink", | ||
] | ||
} | ||
|
||
js_library("certificate_manager_types") { | ||
deps = [ | ||
":certificates_browser_proxy", | ||
] | ||
} | ||
|
||
js_library("certificate_password_decryption_dialog") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
] | ||
} | ||
|
||
js_library("certificate_password_encryption_dialog") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
] | ||
} | ||
|
||
js_library("certificate_subentry") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu", | ||
"//ui/webui/resources/cr_elements/cr_lazy_render:cr_lazy_render", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
] | ||
} | ||
|
||
js_library("certificates_browser_proxy") { | ||
deps = [ | ||
"//ui/webui/resources/js:cr", | ||
] | ||
} | ||
|
||
js_library("certificates_error_dialog") { | ||
deps = [ | ||
":certificate_manager_types", | ||
":certificates_browser_proxy", | ||
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
"//ui/webui/resources/js:load_time_data", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright 2018 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("//third_party/closure_compiler/compile_js.gni") | ||
|
||
group("closure_compile") { | ||
deps = [ | ||
":chromeos_resources", | ||
"network:closure_compile", | ||
"quick_unlock:closure_compile", | ||
] | ||
} | ||
|
||
js_type_check("chromeos_resources") { | ||
deps = [ | ||
":bluetooth_dialog", | ||
] | ||
} | ||
|
||
js_library("bluetooth_dialog") { | ||
deps = [ | ||
"//third_party/polymer/v1_0/components-chromium/iron-resizable-behavior:iron-resizable-behavior-extracted", | ||
"//third_party/polymer/v1_0/components-chromium/paper-input:paper-input-extracted", | ||
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog", | ||
"//ui/webui/resources/js:assert", | ||
"//ui/webui/resources/js:cr", | ||
"//ui/webui/resources/js:i18n_behavior", | ||
] | ||
externs_list = [ | ||
"$externs_path/bluetooth.js", | ||
"$externs_path/bluetooth_private.js", | ||
] | ||
extra_sources = [ | ||
"$interfaces_path/bluetooth_interface.js", | ||
"$interfaces_path/bluetooth_private_interface.js", | ||
] | ||
} |
Oops, something went wrong.