blob: b29bde4bc0284b612f9d34af4b0d071d13c2bd26 [file] [log] [blame]
# Copyright 2017 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.
config("fs_config") {
include_dirs = [ "include" ]
}
static_library("fs") {
# Don't forget to update rules.mk as well for the Zircon build.
sources = [
"connection.cpp",
"include/fs/block-txn.h",
"include/fs/client.h",
"include/fs/connection.h",
"include/fs/managed-vfs.h",
"include/fs/mapped-vmo.h",
"include/fs/pseudo-dir.h",
"include/fs/pseudo-file.h",
"include/fs/remote.h",
"include/fs/remote-dir.h",
"include/fs/service.h",
"include/fs/trace.h",
"include/fs/vfs.h",
"include/fs/vmo-file.h",
"include/fs/vnode.h",
"include/fs/watcher.h",
"managed-vfs.cpp",
"mapped-vmo.cpp",
"mount.cpp",
"pseudo-dir.cpp",
"pseudo-file.cpp",
"remote-dir.cpp",
"service.cpp",
"unmount.cpp",
"vfs.cpp",
"vmo-file.cpp",
"vnode.cpp",
"watcher.cpp",
]
public_configs = [ ":fs_config" ]
defines = [
# TODO(abarth): Should we define this symbol in Fuchsia toolchain?
"_ALL_SOURCE=1",
]
include_dirs = [ "//zircon/system/private" ]
deps = [
"//zircon/system/ulib/async",
"//zircon/system/ulib/trace",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxcpp",
]
libs = [
"fdio",
"trace-engine",
"zircon",
]
}