| # 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. |
| |
| ########################################## |
| # Though under //zircon, this build file # |
| # is meant to be used in the Fuchsia GN # |
| # build. # |
| # See fxbug.dev/36548. # |
| ########################################## |
| |
| assert(!defined(zx) || zx != "/", |
| "This file can only be used in the Fuchsia GN build.") |
| |
| 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" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "tests" ] |
| } |