blob: 57634e53e41743376e61b384833e1bc8b858a3cb [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 = [
"include/fs/async-dispatcher.h",
"include/fs/block-txn.h",
"include/fs/client.h",
"include/fs/connection.h",
"include/fs/dispatcher.h",
"include/fs/mapped-vmo.h",
"include/fs/remote.h",
"include/fs/trace.h",
"include/fs/vfs.h",
"include/fs/vnode.h",
"include/fs/watcher.h",
"async-dispatcher.cpp",
"connection.cpp",
"mapped-vmo.cpp",
"mount.cpp",
"rpc.cpp",
"unmount.cpp",
"vfs.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/zx",
"//zircon/system/ulib/zxcpp",
"//zircon/system/ulib/fbl",
]
libs = [
"zircon",
"fdio",
]
}