| # Copyright 2021 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("../../../../scripts/build/ninja/devtools_entrypoint.gni") |
| import("../../../../scripts/build/ninja/devtools_module.gni") |
| import("../../../../scripts/build/ninja/generate_css.gni") |
| import("../../visibility.gni") |
| |
| generate_css("css_files") { |
| sources = [ "nodeConnectionsPanel.css" ] |
| } |
| |
| devtools_module("app") { |
| sources = [ |
| "NodeConnectionsPanel.ts", |
| "NodeMain.ts", |
| ] |
| |
| deps = [ |
| "../../../core/common:bundle", |
| "../../../core/host:bundle", |
| "../../../core/i18n:bundle", |
| "../../../core/platform:bundle", |
| "../../../core/protocol_client:bundle", |
| "../../../core/sdk:bundle", |
| "../../../generated:protocol", |
| "../../../ui/components/buttons:bundle", |
| "../../../ui/i18n:bundle", |
| "../../../ui/legacy:bundle", |
| "../../../ui/legacy/components/utils:bundle", |
| ] |
| } |
| |
| devtools_entrypoint("bundle") { |
| entrypoint = "app.ts" |
| |
| deps = [ |
| ":app", |
| ":css_files", |
| ] |
| |
| visibility = [ |
| ":unittests", |
| "../:*", |
| ] |
| } |
| |
| ts_library("unittests") { |
| testonly = true |
| |
| sources = [ "NodeMain.test.ts" ] |
| |
| deps = [ |
| ":bundle", |
| "../../../core/sdk:bundle", |
| "../../../generated:protocol", |
| "../../../testing", |
| ] |
| } |