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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "procid",
     7      srcs = [
     8          "procid.go",
     9          "procid_amd64.s",
    10          "procid_arm64.s",
    11      ],
    12      visibility = ["//visibility:public"],
    13  )
    14  
    15  go_test(
    16      name = "procid_test",
    17      size = "small",
    18      srcs = [
    19          "procid_test.go",
    20      ],
    21      library = ":procid",
    22      deps = [
    23          "//pkg/sync",
    24          "@org_golang_x_sys//unix:go_default_library",
    25      ],
    26  )
    27  
    28  go_test(
    29      name = "procid_net_test",
    30      size = "small",
    31      srcs = [
    32          "procid_net_test.go",
    33          "procid_test.go",
    34      ],
    35      library = ":procid",
    36      deps = [
    37          "//pkg/sync",
    38          "@org_golang_x_sys//unix:go_default_library",
    39      ],
    40  )