blob: 403e2a55bb98c6f993fac05df64c6d0bca645270 [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("../scripts/build/ninja/copy.gni")
import("../third_party/typescript/typescript.gni")
group("front_end") {
public_deps = [
":front_end_html_entrypoints",
":ts_library-verification",
"accessibility:bundle",
"bindings:bundle",
"browser_sdk:bundle",
"common:bundle",
"component_docs",
"data_grid:bundle",
"diff:bundle",
"dom_extension:bundle",
"elements:bundle",
"formatter:bundle",
"formatter_worker:bundle",
"i18n:bundle_i18n",
"issues:bundle",
"sdk:bundle",
"third_party/lighthouse",
"workspace:bundle",
]
data_deps = [
":embedder-scripts",
":front_end_html_entrypoints",
]
}
copy_sources_to_resources("front_end_html_entrypoints") {
sources = [
"devtools_app.html",
"formatter_worker_entrypoint.js",
"inspector.html",
"integration_test_runner.html",
"js_app.html",
"ndb_app.html",
"node_app.html",
"toolbox.html",
"worker_app.html",
]
}
copy_sources_to_resources("embedder-scripts") {
sources = [
"Tests.js",
"devtools_compatibility.js",
]
}
# This target is used to perform checks on all generated `.d.ts` files.
# Previously we would only run these checks when `is_debug=false`, but
# this complicated debugging. Therefore, this target now always perform
# the check, but we only check the `.d.ts` files once (rather than for
# every single defined `ts_library`).
#
# Whenever a folder is fully checked by the TypeScript compiler, add
# the folder to the `deps` of this target AND add a corresponding
# `import`-statement to the `verification.ts` file. Without adding
# the `import`-statement, TypeScript will be "smart" and ignore all
# declaration files it doesn't have to use.
ts_library("ts_library-verification") {
verify_lib_check = true
sources = [ "verification.ts" ]
deps = [
"bindings:bundle",
"browser_sdk:bundle",
"color_picker",
"common:bundle",
"dom_extension:bundle",
"host:bundle",
"inspector_overlay",
"protocol_client",
"root:bundle",
"sdk:bundle",
"workspace:bundle",
]
}