gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/link/rawfile/BUILD (about)

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