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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(licenses = ["notice"])
     5  
     6  go_template_instance(
     7      name = "addr_range",
     8      out = "addr_range.go",
     9      package = "hostarch",
    10      prefix = "Addr",
    11      template = "//pkg/segment:generic_range",
    12      types = {
    13          "T": "Addr",
    14      },
    15  )
    16  
    17  go_test(
    18      name = "hostarch_test",
    19      size = "small",
    20      srcs = [
    21          "addr_range_seq_test.go",
    22      ],
    23      library = ":hostarch",
    24  )
    25  
    26  go_library(
    27      name = "hostarch",
    28      srcs = [
    29          "access_type.go",
    30          "addr.go",
    31          "addr_range.go",
    32          "addr_range_seq_unsafe.go",
    33          "hostarch.go",
    34          "hostarch_arm64.go",
    35          "hostarch_x86.go",
    36      ],
    37      visibility = ["//:sandbox"],
    38      deps = [
    39          "//pkg/gohacks",
    40          "@org_golang_x_sys//unix:go_default_library",
    41      ],
    42  )