| # Copyright 2023 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/typescript/typescript.gni") |
| |
| devtools_foundation_module("cpu_profile") { |
| sources = [ |
| "CPUProfileDataModel.ts", |
| "ProfileTreeModel.ts", |
| ] |
| |
| ts_deps = [ |
| "../../core/platform:bundle", |
| "../../generated", |
| ] |
| } |
| |
| devtools_entrypoint("bundle") { |
| entrypoint = "cpu_profile.ts" |
| |
| ts_deps = [ ":cpu_profile" ] |
| |
| visibility = [ |
| ":*", |
| "../../core/sdk/*", |
| "../../panels/profiler/*", |
| "../../panels/timeline/*", |
| "../../testing/*", |
| "../../ui/legacy/components/perf_ui/*", |
| "../trace/*", |
| ] |
| } |
| |
| devtools_foundation_module("foundation_unittests") { |
| testonly = true |
| |
| sources = [ "CPUProfileDataModel.test.ts" ] |
| |
| ts_deps = [ |
| ":bundle", |
| "../../generated", |
| ] |
| } |