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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  licenses(["notice"])
     4  
     5  go_library(
     6      name = "eventfd",
     7      srcs = ["eventfd.go"],
     8      visibility = ["//pkg/sentry:internal"],
     9      deps = [
    10          "//pkg/abi/linux",
    11          "//pkg/context",
    12          "//pkg/fdnotifier",
    13          "//pkg/hostarch",
    14          "//pkg/log",
    15          "//pkg/sentry/vfs",
    16          "//pkg/syserror",
    17          "//pkg/usermem",
    18          "//pkg/waiter",
    19          "@org_golang_x_sys//unix:go_default_library",
    20      ],
    21  )
    22  
    23  go_test(
    24      name = "eventfd_test",
    25      size = "small",
    26      srcs = ["eventfd_test.go"],
    27      library = ":eventfd",
    28      deps = [
    29          "//pkg/abi/linux",
    30          "//pkg/sentry/contexttest",
    31          "//pkg/sentry/vfs",
    32          "//pkg/usermem",
    33          "//pkg/waiter",
    34      ],
    35  )