blob: 0d6ab9937b8d0c8dac8aac84752d9fac9e0082ff [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.
import("//build/unification/zx_library.gni")
zx_library("zxio") {
sdk = "static"
sdk_headers = [
"lib/zxio/extensions.h",
"lib/zxio/inception.h",
"lib/zxio/null.h",
"lib/zxio/ops.h",
"lib/zxio/types.h",
"lib/zxio/zxio.h",
]
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 = [
"//zircon/public/lib/sync",
# <lib/zxio/inception.h> has #include <fuchsia/io/llcpp/fidl.h>.
"//sdk/fidl/fuchsia.io:fuchsia.io_llcpp",
]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_llcpp",
"//sdk/fidl/fuchsia.io2:fuchsia.io2_llcpp",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
group("tests") {
testonly = true
deps = [ "tests" ]
}