github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/kernel/pipe/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "pipe",
     7      srcs = [
     8          "device.go",
     9          "node.go",
    10          "pipe.go",
    11          "pipe_unsafe.go",
    12          "pipe_util.go",
    13          "reader.go",
    14          "reader_writer.go",
    15          "save_restore.go",
    16          "vfs.go",
    17          "writer.go",
    18      ],
    19      visibility = ["//pkg/sentry:internal"],
    20      deps = [
    21          "//pkg/abi/linux",
    22          "//pkg/amutex",
    23          "//pkg/context",
    24          "//pkg/errors/linuxerr",
    25          "//pkg/hostarch",
    26          "//pkg/marshal/primitive",
    27          "//pkg/safemem",
    28          "//pkg/sentry/arch",
    29          "//pkg/sentry/device",
    30          "//pkg/sentry/fs",
    31          "//pkg/sentry/fs/fsutil",
    32          "//pkg/sentry/vfs",
    33          "//pkg/sync",
    34          "//pkg/syserror",
    35          "//pkg/usermem",
    36          "//pkg/waiter",
    37          "@org_golang_x_sys//unix:go_default_library",
    38      ],
    39  )
    40  
    41  go_test(
    42      name = "pipe_test",
    43      size = "small",
    44      srcs = [
    45          "node_test.go",
    46          "pipe_test.go",
    47      ],
    48      library = ":pipe",
    49      deps = [
    50          "//pkg/context",
    51          "//pkg/errors/linuxerr",
    52          "//pkg/sentry/contexttest",
    53          "//pkg/sentry/fs",
    54          "//pkg/syserror",
    55          "//pkg/usermem",
    56          "//pkg/waiter",
    57      ],
    58  )