| # Copyright 2025 The Fuchsia 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("//build/bazel/bazel_test_suite.gni") | |
| bazel_test_suite("bazel_tests") { | |
| host_tests = [ "//src/performance/trace_task:trace_task_fdomain_host_test" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":bazel_tests", | |
| ":trace_task_fdomain_test", | |
| ":trace_task_fdomain_test($host_toolchain)", | |
| ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| rustc_library("trace_task") { | |
| sources = [ | |
| "src/lib.rs", | |
| "src/trace_task.rs", | |
| "src/triggers.rs", | |
| ] | |
| edition = "2024" | |
| link_deps = [ "//third_party/zstd" ] | |
| visibility = [ | |
| ":*", | |
| "//src/performance/trace_session_manager:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.tracing.controller:fuchsia.tracing.controller_rust_flex", | |
| "//src/lib/fdomain/client:flex_fidl", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:async-channel", | |
| "//third_party/rust_crates:async-lock", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zstd", | |
| ] | |
| } | |
| rustc_library("trace_task_fdomain") { | |
| sources = [ | |
| "src/lib.rs", | |
| "src/trace_task.rs", | |
| "src/triggers.rs", | |
| ] | |
| edition = "2024" | |
| link_deps = [ "//third_party/zstd" ] | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/trace:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.tracing.controller:fuchsia.tracing.controller_rust_fdomain_flex", | |
| "//src/lib/fdomain/client:flex_fdomain", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:async-channel", | |
| "//third_party/rust_crates:async-lock", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zstd", | |
| ] | |
| } | |
| rustc_test("trace_task_fdomain_test") { | |
| sources = [ | |
| "src/lib.rs", | |
| "src/trace_task.rs", | |
| "src/triggers.rs", | |
| ] | |
| edition = "2024" | |
| link_deps = [ "//third_party/zstd" ] | |
| deps = [] | |
| deps += [ | |
| "//sdk/fidl/fuchsia.tracing.controller:fuchsia.tracing.controller_rust_fdomain_flex", | |
| "//src/lib/fdomain/client:flex_fdomain", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:async-channel", | |
| "//third_party/rust_crates:async-lock", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zstd", | |
| ] | |
| deps += [ | |
| "//src/lib/fdomain/local", | |
| "//src/lib/fuchsia", | |
| ] | |
| if (is_fuchsia) { | |
| deps += [] | |
| } else { | |
| deps += [ | |
| "//third_party/rust_crates:async-fs", | |
| "//third_party/rust_crates:tempfile", | |
| ] | |
| } | |
| } |