gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/fsimpl/eventfd/BUILD (about)

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