| # Copyright 2020 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. |
| |
| group("tests") { |
| testonly = true |
| deps = [ "tests" ] |
| } |
| |
| config("nix_headers") { |
| include_dirs = [ "include" ] |
| } |
| |
| static_library("nix") { |
| public = [ |
| "include/sys/epoll.h", |
| "include/sys/inotify.h", |
| "include/sys/random.h", |
| "include/sys/sendfile.h", |
| ] |
| sources = [ |
| "epoll.cc", |
| "inotify.cc", |
| "random.cc", |
| "sendfile.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.posix.socket", |
| "//sdk/lib/fdio", |
| "//zircon/public/lib/fbl", |
| "//zircon/system/ulib/zxio", |
| ] |
| defines = [ "_ALL_SOURCE" ] |
| public_configs = [ ":nix_headers" ] |
| } |