github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/link/rawfile/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "rawfile",
     7      srcs = [
     8          "blockingpoll_amd64.s",
     9          "blockingpoll_arm64.s",
    10          "blockingpoll_noyield_unsafe.go",
    11          "blockingpoll_yield_unsafe.go",
    12          "errors.go",
    13          "rawfile_unsafe.go",
    14      ],
    15      visibility = ["//visibility:public"],
    16      deps = [
    17          "//pkg/tcpip",
    18          "@org_golang_x_sys//unix:go_default_library",
    19      ],
    20  )
    21  
    22  go_test(
    23      name = "rawfile_test",
    24      srcs = [
    25          "errors_test.go",
    26      ],
    27      library = "rawfile",
    28      deps = [
    29          "//pkg/tcpip",
    30          "@com_github_google_go_cmp//cmp:go_default_library",
    31          "@org_golang_x_sys//unix:go_default_library",
    32      ],
    33  )