| # Copyright 2026 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. | |
| load("//build/bazel/rules/cc:fx_cc_library.bzl", "fx_cc_library") | |
| package(default_applicable_licenses = ["//:license"]) | |
| fx_cc_library( | |
| name = "inspect", | |
| srcs = [ | |
| "operation_tracker/operation_tracker_shared.cc", | |
| ] + select({ | |
| "@platforms//os:fuchsia": [ | |
| "inspect_data.cc", | |
| "inspect_tree.cc", | |
| "operation_tracker/operation_tracker_fuchsia.cc", | |
| ], | |
| "//conditions:default": [], | |
| }), | |
| hdrs = [ | |
| "node_operations.h", | |
| "operation_tracker.h", | |
| "operation_tracker/operation_tracker_base.h", | |
| ] + select({ | |
| "@platforms//os:fuchsia": [ | |
| "inspect_data.h", | |
| "inspect_tree.h", | |
| "operation_tracker/operation_tracker_fuchsia.h", | |
| ], | |
| "//conditions:default": [ | |
| "operation_tracker/operation_tracker_stub.h", | |
| ], | |
| }), | |
| implementation_deps = [ | |
| "//sdk/lib/syslog/cpp", | |
| ] + select({ | |
| "@platforms//os:fuchsia": [ | |
| "//sdk/fidl/fuchsia.storage.block:fuchsia.storage.block_cpp", | |
| "//sdk/lib/fit-promise", | |
| ], | |
| "//conditions:default": [], | |
| }), | |
| visibility = [ | |
| "//src/storage/blobfs:__pkg__", | |
| "//src/storage/f2fs:__pkg__", | |
| "//src/storage/fs_test:__pkg__", | |
| "//src/storage/minfs:__pkg__", | |
| ], | |
| deps = [ | |
| "//zircon/system/ulib/zx", | |
| ] + select({ | |
| "@platforms//os:fuchsia": [ | |
| "//src/storage/lib/block_client/cpp:interface", | |
| "//zircon/system/ulib/inspect", | |
| ], | |
| "//conditions:default": [], | |
| }), | |
| ) |