mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
364 lines
8.6 KiB
Plaintext
364 lines
8.6 KiB
Plaintext
# 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")
|
|
import("../optimize_webui.gni")
|
|
import("//tools/grit/grit_rule.gni")
|
|
import("//chrome/common/features.gni")
|
|
|
|
extensions_pak_file = "extensions_resources.pak"
|
|
unpak_folder = "extensions_resources.unpak"
|
|
|
|
optimize_webui("build") {
|
|
host = "extensions"
|
|
html_in_files = [ "extensions.html" ]
|
|
html_out_files = [ "vulcanized.html" ]
|
|
html_out_files_polymer2 = [ "vulcanized.p2.html" ]
|
|
insert_in_head = "<base href=\"chrome://extensions\">"
|
|
input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir)
|
|
js_out_files = [ "crisper.js" ]
|
|
|
|
deps = [
|
|
":unpak",
|
|
]
|
|
}
|
|
|
|
unpak("unpak") {
|
|
pak_file = extensions_pak_file
|
|
out_folder = unpak_folder
|
|
|
|
deps = [
|
|
":flattened_resources",
|
|
]
|
|
}
|
|
|
|
grit("flattened_resources") {
|
|
source = "extensions_resources.grd"
|
|
|
|
# The .grd contains references to generated files.
|
|
source_is_generated = true
|
|
|
|
defines = chrome_grit_defines
|
|
outputs = [
|
|
"grit/extensions_resources.h",
|
|
"grit/extensions_resources_map.cc",
|
|
"grit/extensions_resources_map.h",
|
|
extensions_pak_file,
|
|
]
|
|
output_dir = "$root_gen_dir/chrome/browser/resources/md_extensions"
|
|
}
|
|
js_type_check("closure_compile") {
|
|
deps = [
|
|
":code_section",
|
|
":detail_view",
|
|
":drag_and_drop_handler",
|
|
":drop_overlay",
|
|
":error_page",
|
|
":install_warnings_dialog",
|
|
":item",
|
|
":item_behavior",
|
|
":item_list",
|
|
":item_util",
|
|
":keyboard_shortcuts",
|
|
":kiosk_browser_proxy",
|
|
":kiosk_dialog",
|
|
":load_error",
|
|
":manager",
|
|
":navigation_helper",
|
|
":options_dialog",
|
|
":pack_dialog",
|
|
":pack_dialog_alert",
|
|
":runtime_host_permissions",
|
|
":runtime_hosts_dialog",
|
|
":service",
|
|
":shortcut_input",
|
|
":shortcut_util",
|
|
":sidebar",
|
|
":toolbar",
|
|
":view_manager",
|
|
]
|
|
}
|
|
|
|
js_library("code_section") {
|
|
deps = [
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:i18n_behavior",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("detail_view") {
|
|
deps = [
|
|
":item",
|
|
":item_behavior",
|
|
":item_util",
|
|
":navigation_helper",
|
|
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
|
|
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
"//ui/webui/resources/js/cr/ui:focus_without_ink",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("drag_and_drop_handler") {
|
|
deps = [
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js/cr/ui:drag_wrapper",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("drop_overlay") {
|
|
deps = [
|
|
":drag_and_drop_handler",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
"//ui/webui/resources/js/cr/ui:drag_wrapper",
|
|
]
|
|
}
|
|
|
|
js_library("error_page") {
|
|
deps = [
|
|
":code_section",
|
|
":item_util",
|
|
":navigation_helper",
|
|
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js/cr/ui:focus_outline_manager",
|
|
"//ui/webui/resources/js/cr/ui:focus_without_ink",
|
|
]
|
|
externs_list = [
|
|
"$externs_path/developer_private.js",
|
|
"$externs_path/metrics_private.js",
|
|
]
|
|
}
|
|
|
|
js_library("install_warnings_dialog") {
|
|
deps = [
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
}
|
|
|
|
js_library("item") {
|
|
deps = [
|
|
":item_behavior",
|
|
":item_util",
|
|
":navigation_helper",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:i18n_behavior",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("item_behavior") {
|
|
deps = [
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("item_list") {
|
|
deps = [
|
|
":item",
|
|
"//third_party/polymer/v1_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer-extracted",
|
|
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:i18n_behavior",
|
|
]
|
|
externs_list = [
|
|
"$externs_path/developer_private.js",
|
|
"$externs_path/metrics_private.js",
|
|
]
|
|
}
|
|
|
|
js_library("item_util") {
|
|
deps = [
|
|
":navigation_helper",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("keyboard_shortcuts") {
|
|
deps = [
|
|
":item_behavior",
|
|
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [
|
|
"$externs_path/developer_private.js",
|
|
"$externs_path/metrics_private.js",
|
|
]
|
|
}
|
|
|
|
js_library("kiosk_browser_proxy") {
|
|
deps = [
|
|
":item_behavior",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
}
|
|
|
|
js_library("kiosk_dialog") {
|
|
deps = [
|
|
":kiosk_browser_proxy",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:web_ui_listener_behavior",
|
|
]
|
|
}
|
|
|
|
js_library("load_error") {
|
|
deps = [
|
|
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("manager") {
|
|
deps = [
|
|
":detail_view",
|
|
":item",
|
|
":item_list",
|
|
":item_util",
|
|
":keyboard_shortcuts",
|
|
":kiosk_browser_proxy",
|
|
":load_error",
|
|
":navigation_helper",
|
|
":service",
|
|
":sidebar",
|
|
":toolbar",
|
|
":view_manager",
|
|
"//ui/webui/resources/cr_elements/cr_drawer:cr_drawer",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("navigation_helper") {
|
|
deps = [
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
}
|
|
|
|
js_library("options_dialog") {
|
|
deps = [
|
|
":item_behavior",
|
|
":navigation_helper",
|
|
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("pack_dialog") {
|
|
deps = [
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("pack_dialog_alert") {
|
|
deps = [
|
|
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("runtime_host_permissions") {
|
|
deps = [
|
|
":item",
|
|
":runtime_hosts_dialog",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("runtime_hosts_dialog") {
|
|
deps = [
|
|
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
|
|
"//ui/webui/resources/cr_elements/cr_input:cr_input",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
}
|
|
|
|
js_library("service") {
|
|
deps = [
|
|
":error_page",
|
|
":item",
|
|
":load_error",
|
|
":navigation_helper",
|
|
":pack_dialog",
|
|
":toolbar",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:load_time_data",
|
|
]
|
|
externs_list = [
|
|
"$externs_path/developer_private.js",
|
|
"$externs_path/management.js",
|
|
"$externs_path/metrics_private.js",
|
|
]
|
|
}
|
|
|
|
js_library("shortcut_input") {
|
|
deps = [
|
|
":shortcut_util",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/developer_private.js" ]
|
|
}
|
|
|
|
js_library("shortcut_util") {
|
|
deps = [
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
}
|
|
|
|
js_library("sidebar") {
|
|
deps = [
|
|
":navigation_helper",
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/metrics_private.js" ]
|
|
}
|
|
|
|
js_library("toolbar") {
|
|
deps = [
|
|
"//third_party/polymer/v1_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer-extracted",
|
|
"//ui/webui/resources/cr_elements/cr_toast:cr_toast",
|
|
"//ui/webui/resources/js:cr",
|
|
"//ui/webui/resources/js:i18n_behavior",
|
|
"//ui/webui/resources/js:util",
|
|
]
|
|
externs_list = [ "$externs_path/metrics_private.js" ]
|
|
}
|
|
|
|
js_library("view_manager") {
|
|
deps = [
|
|
"//ui/webui/resources/js:assert",
|
|
"//ui/webui/resources/js:cr",
|
|
]
|
|
externs_list = [ "$externs_path/web_animations.js" ]
|
|
}
|