gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/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(
     5      default_applicable_licenses = ["//:license"],
     6      licenses = ["notice"],
     7  )
     8  
     9  go_template_instance(
    10      name = "addr_range",
    11      out = "addr_range.go",
    12      package = "hostarch",
    13      prefix = "Addr",
    14      template = "//pkg/segment:generic_range",
    15      types = {
    16          "T": "Addr",
    17      },
    18  )
    19  
    20  go_test(
    21      name = "hostarch_test",
    22      size = "small",
    23      srcs = [
    24          "addr_range_seq_test.go",
    25          "addr_test.go",
    26      ],
    27      library = ":hostarch",
    28  )
    29  
    30  go_library(
    31      name = "hostarch",
    32      srcs = [
    33          "access_type.go",
    34          "addr.go",
    35          "addr_range.go",
    36          "addr_range_seq_unsafe.go",
    37          "addr_unsafe.go",
    38          "hostarch.go",
    39          "hostarch_arm64.go",
    40          "hostarch_x86.go",
    41          "sizes_util.go",
    42      ],
    43      visibility = ["//:sandbox"],
    44      deps = [
    45          "//pkg/gohacks",
    46          "@org_golang_x_sys//unix:go_default_library",
    47      ],
    48  )