blob: dfc3d3c0cd6a621858dec3d6a74da3d6135fe2f0 [file] [edit]
# 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("@rules_cc//cc:cc_library.bzl", "cc_library")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
)
cc_library(
name = "interface",
srcs = [
"block_device.cc",
"reader_writer.cc",
],
hdrs = [
"block_device.h",
"reader_writer.h",
],
target_compatible_with = ["@platforms//os:fuchsia"],
deps = [
"//src/storage/lib/block_protocol:block_fifo",
"//src/storage/lib/buffer",
"//zircon/system/ulib/fzl",
"//zircon/third_party/ulib/safemath",
"@fuchsia_sdk//fidl/fuchsia.storage.block:fuchsia.storage.block_cpp",
"@fuchsia_sdk//pkg/zx",
],
)
cc_library(
name = "cpp",
srcs = [
"block_group_registry.cc",
"client.cc",
"remote_block_device.cc",
],
hdrs = [
"block_group_registry.h",
"client.h",
"pass_through_read_only_device.h",
"remote_block_device.h",
],
target_compatible_with = ["@platforms//os:fuchsia"],
deps = [
":interface",
"//src/storage/lib/block_protocol:block_fifo",
"//src/storage/lib/buffer",
"//zircon/third_party/ulib/safemath",
"@fuchsia_sdk//fidl/fuchsia.io:fuchsia.io_cpp",
"@fuchsia_sdk//fidl/fuchsia.storage.block:fuchsia.storage.block_cpp",
"@fuchsia_sdk//pkg/fdio",
"@fuchsia_sdk//pkg/zx",
],
)