github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/socket/unix/transport/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(licenses = ["notice"])
     5  
     6  go_template_instance(
     7      name = "transport_message_list",
     8      out = "transport_message_list.go",
     9      package = "transport",
    10      prefix = "message",
    11      template = "//pkg/ilist:generic_list",
    12      types = {
    13          "Element": "*message",
    14          "Linker": "*message",
    15      },
    16  )
    17  
    18  go_template_instance(
    19      name = "queue_refs",
    20      out = "queue_refs.go",
    21      package = "transport",
    22      prefix = "queue",
    23      template = "//pkg/refsvfs2:refs_template",
    24      types = {
    25          "T": "queue",
    26      },
    27  )
    28  
    29  go_library(
    30      name = "transport",
    31      srcs = [
    32          "connectioned.go",
    33          "connectioned_state.go",
    34          "connectionless.go",
    35          "connectionless_state.go",
    36          "queue.go",
    37          "queue_refs.go",
    38          "transport_message_list.go",
    39          "unix.go",
    40      ],
    41      visibility = ["//:sandbox"],
    42      deps = [
    43          "//pkg/abi/linux",
    44          "//pkg/context",
    45          "//pkg/ilist",
    46          "//pkg/log",
    47          "//pkg/refs",
    48          "//pkg/refsvfs2",
    49          "//pkg/sentry/inet",
    50          "//pkg/sync",
    51          "//pkg/syserr",
    52          "//pkg/tcpip",
    53          "//pkg/tcpip/buffer",
    54          "//pkg/waiter",
    55      ],
    56  )