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

     1  load("//tools:defs.bzl", "go_library", "go_test", "proto_library")
     2  
     3  package(licenses = ["notice"])
     4  
     5  proto_library(
     6      name = "api",
     7      srcs = [
     8          "runtimeoptions.proto",
     9      ],
    10  )
    11  
    12  go_library(
    13      name = "runtimeoptions",
    14      srcs = [
    15          "runtimeoptions.go",
    16          "runtimeoptions_cri.go",
    17      ],
    18      visibility = ["//pkg/shim:__pkg__"],
    19      deps = ["@com_github_gogo_protobuf//proto:go_default_library"],
    20  )
    21  
    22  go_test(
    23      name = "runtimeoptions_test",
    24      size = "small",
    25      srcs = ["runtimeoptions_test.go"],
    26      library = ":runtimeoptions",
    27      deps = [
    28          "@com_github_containerd_containerd//runtime/v1/shim/v1:go_default_library",
    29          "@com_github_containerd_typeurl//:go_default_library",
    30          "@com_github_gogo_protobuf//proto:go_default_library",
    31      ],
    32  )