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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(default_applicable_licenses = ["//:license"])
     5  
     6  licenses(["notice"])
     7  
     8  go_template_instance(
     9      name = "root_inode_refs",
    10      out = "root_inode_refs.go",
    11      package = "devpts",
    12      prefix = "rootInode",
    13      template = "//pkg/refs:refs_template",
    14      types = {
    15          "T": "rootInode",
    16      },
    17  )
    18  
    19  go_library(
    20      name = "devpts",
    21      srcs = [
    22          "devpts.go",
    23          "line_discipline.go",
    24          "master.go",
    25          "queue.go",
    26          "replica.go",
    27          "root_inode_refs.go",
    28          "terminal.go",
    29      ],
    30      visibility = ["//pkg/sentry:internal"],
    31      deps = [
    32          "//pkg/abi/linux",
    33          "//pkg/atomicbitops",
    34          "//pkg/context",
    35          "//pkg/errors/linuxerr",
    36          "//pkg/log",
    37          "//pkg/marshal",
    38          "//pkg/marshal/primitive",
    39          "//pkg/refs",
    40          "//pkg/safemem",
    41          "//pkg/sentry/arch",
    42          "//pkg/sentry/fsimpl/kernfs",
    43          "//pkg/sentry/fsimpl/lock",
    44          "//pkg/sentry/kernel",
    45          "//pkg/sentry/kernel/auth",
    46          "//pkg/sentry/unimpl",
    47          "//pkg/sentry/vfs",
    48          "//pkg/sync",
    49          "//pkg/usermem",
    50          "//pkg/waiter",
    51      ],
    52  )
    53  
    54  go_test(
    55      name = "devpts_test",
    56      size = "small",
    57      srcs = ["devpts_test.go"],
    58      library = ":devpts",
    59      deps = [
    60          "//pkg/abi/linux",
    61          "//pkg/sentry/contexttest",
    62          "//pkg/usermem",
    63          "//pkg/waiter",
    64      ],
    65  )