| # 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/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 = [ |
| "changesSidebar.css", |
| "changesView.css", |
| ] |
| } |
| |
| devtools_module("changes") { |
| sources = [ |
| "ChangesHighlighter.ts", |
| "ChangesSidebar.ts", |
| "ChangesTextEditor.ts", |
| "ChangesView.ts", |
| ] |
| |
| deps = [ |
| "../../core/common:bundle", |
| "../../core/i18n:bundle", |
| "../../models/workspace:bundle", |
| "../../models/workspace_diff:bundle", |
| "../../panels/snippets:bundle", |
| "../../third_party/diff:bundle", |
| "../../ui/legacy:bundle", |
| "../../ui/legacy/components/text_editor:bundle", |
| ] |
| } |
| |
| devtools_entrypoint("bundle") { |
| entrypoint = "changes.ts" |
| |
| deps = [ |
| ":changes", |
| ":css_files", |
| ] |
| |
| visibility = [ |
| ":*", |
| "../../../test/unittests/front_end/entrypoints/missing_entrypoints/*", |
| "../../entrypoints/*", |
| ] |
| |
| visibility += devtools_panels_visibility |
| } |
| |
| devtools_entrypoint("legacy") { |
| entrypoint = "changes-legacy.ts" |
| |
| deps = [ ":bundle" ] |
| |
| visibility = [ "../..:legacy_entrypoints" ] |
| } |
| |
| devtools_entrypoint("meta") { |
| entrypoint = "changes-meta.ts" |
| |
| deps = [ ":bundle" ] |
| |
| visibility = [ "../../entrypoints/*" ] |
| } |