github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/transport/raw/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 = "raw_packet_list",
     8      out = "raw_packet_list.go",
     9      package = "raw",
    10      prefix = "rawPacket",
    11      template = "//pkg/ilist:generic_list",
    12      types = {
    13          "Element": "*rawPacket",
    14          "Linker": "*rawPacket",
    15      },
    16  )
    17  
    18  go_library(
    19      name = "raw",
    20      srcs = [
    21          "endpoint.go",
    22          "endpoint_state.go",
    23          "protocol.go",
    24          "raw_packet_list.go",
    25      ],
    26      imports = ["gvisor.dev/gvisor/pkg/tcpip/buffer"],
    27      visibility = ["//visibility:public"],
    28      deps = [
    29          "//pkg/log",
    30          "//pkg/sleep",
    31          "//pkg/sync",
    32          "//pkg/tcpip",
    33          "//pkg/tcpip/buffer",
    34          "//pkg/tcpip/header",
    35          "//pkg/tcpip/stack",
    36          "//pkg/tcpip/transport/packet",
    37          "//pkg/waiter",
    38      ],
    39  )