blob: bfcbd9c6f92d213b5e801b5e917a14e835a95ad6 [file] [log] [blame]
# Copyright 2019 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.
zx_library("blobfs") {
host = true
sources = [
"allocator/extent-reserver.cc",
"allocator/node-reserver.cc",
"blobfs-checker.cc",
"common.cc",
"compression/lz4.cc",
"compression/zstd.cc",
"iterator/allocated-extent-iterator.cc",
"iterator/block-iterator.cc",
"iterator/vector-extent-iterator.cc",
]
public_deps = [
"$zx/system/ulib/bitmap:headers",
"$zx/system/ulib/fs:headers",
"$zx/system/ulib/fs/journal:headers",
"$zx/system/ulib/fs/transaction:headers",
"$zx/system/ulib/range:headers",
"$zx/system/ulib/storage/buffer:headers",
# <blobfs/format.h> has #include <digest/digest.h>.
"$zx/system/ulib/digest:headers",
]
deps = [
"$zx/system/ulib/bitmap",
"$zx/system/ulib/digest",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fit",
"$zx/system/ulib/fs/journal",
"$zx/system/ulib/fs/transaction",
"$zx/system/ulib/fvm",
"$zx/system/ulib/id_allocator",
"$zx/system/ulib/range",
"$zx/system/ulib/storage/buffer",
"$zx/system/ulib/storage/operation",
"$zx/system/ulib/zircon-internal",
"$zx/third_party/ulib/cksum",
"$zx/third_party/ulib/lz4",
"$zx/third_party/ulib/safemath",
"$zx/third_party/ulib/uboringssl",
"$zx/third_party/ulib/zstd",
]
if (is_fuchsia) {
sources += [
"allocator/allocator.cc",
"blob-cache.cc",
"blob.cc",
"blobfs.cc",
"cache-node.cc",
"compression/blob-compressor.cc",
"directory.cc",
"format.cc",
"fsck.cc",
"iterator/node-populator.cc",
"metrics.cc",
"mount.cc",
"runner.cc",
]
public_deps += [
"$zx/system/ulib/block-client:headers",
"$zx/system/ulib/fs/metrics:metrics-cobalt.headers",
"$zx/system/ulib/fs/metrics:metrics-composite-latency-event.headers",
"$zx/system/ulib/fs/metrics:metrics-inspect.headers",
]
deps += [
"$zx/system/fidl/fuchsia-blobfs:c",
"$zx/system/ulib/async",
"$zx/system/ulib/async:async-cpp",
"$zx/system/ulib/async:async-default",
"$zx/system/ulib/async-loop",
"$zx/system/ulib/async-loop:async-loop-cpp",
"$zx/system/ulib/async-loop:async-loop-default.static",
"$zx/system/ulib/block-client",
"$zx/system/ulib/fdio",
"$zx/system/ulib/fidl-utils",
"$zx/system/ulib/fs/metrics:metrics",
"$zx/system/ulib/fzl",
"$zx/system/ulib/sync",
"$zx/system/ulib/trace",
"$zx/system/ulib/trace-engine",
"$zx/system/ulib/trace-provider:trace-provider-with-fdio",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
} else {
sources += [
"fsck-host.cc",
"host.cc",
]
deps += [ "$zx/system/ulib/fs-host" ]
}
include_dirs = [ "." ]
}