| # 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_library("webview_tag") { |
| sources = [] |
| |
| # The webview extern depends on chrome_extensions, which depends on chrome. |
| # They must appear together, in this order, to avoid flaky dependency chains. |
| externs_list = [ |
| "$externs_path/chrome.js", |
| "$externs_path/chrome_extensions.js", |
| "webview_tag.js", |
| ] |
| } |
| |
| js_library("file_manager_private") { |
| sources = [] |
| |
| # The file_manager_private extern depends on file_system_provider and |
| # extension APIs. Ensure they're pulled in together. |
| externs_list = [ |
| "$externs_path/chrome.js", |
| "$externs_path/chrome_extensions.js", |
| "$externs_path/file_manager_private.js", |
| "$externs_path/file_system_provider.js", |
| ] |
| } |
| |
| js_library("volume_manager") { |
| sources = [] |
| |
| # Encapsulate volume_manager.js and its dependencies. Note this should really |
| # depend on volume_manager_types.js as well, but that's not an extern. |
| externs_list = [ |
| "entry_location.js", |
| "volume_info.js", |
| "volume_info_list.js", |
| "volume_manager.js", |
| ] |
| } |