blob: c4226f0fe38ba9fdc489bfda0680a9eb24afffee [file] [log] [blame] [edit]
# 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.
import("//build/cpp/library_headers.gni")
library_headers("headers") {
headers = [
"lib/zxio/cpp/inception.h",
"lib/zxio/cpp/vector.h",
"lib/zxio/extensions.h",
"lib/zxio/inception.h",
"lib/zxio/null.h",
"lib/zxio/ops.h",
"lib/zxio/types.h",
"lib/zxio/zxio.h",
]
public_deps = [
# <lib/zxio/inception.h> has #include <fuchsia/io/llcpp/fidl.h>.
"//sdk/fidl/fuchsia.io:fuchsia.io_llcpp",
]
}
static_library("zxio") {
sources = [
"debuglog.cc",
"extensions.cc",
"get_vmo.cc",
"null.cc",
"pipe.cc",
"remote.cc",
"remote_v2/common_utils.cc",
"remote_v2/dirent_iterator.cc",
"remote_v2/remote_v2.cc",
"vmo.cc",
"vmofile.cc",
"zxio.cc",
]
public_deps = [ ":headers" ]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_llcpp",
"//sdk/fidl/fuchsia.io2:fuchsia.io2_llcpp",
"//zircon/public/lib/fbl",
"//zircon/public/lib/zx",
]
}
static_library("zxio_complete") {
complete_static_lib = true
deps = [ ":zxio" ]
}
group("tests") {
testonly = true
deps = [ "tests" ]
}