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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "cpuid",
     7      srcs = [
     8          "cpu_amd64.s",
     9          "cpuid.go",
    10          "cpuid_arm64.go",
    11          "cpuid_x86.go",
    12      ],
    13      visibility = ["//:sandbox"],
    14      deps = ["//pkg/log"],
    15  )
    16  
    17  go_test(
    18      name = "cpuid_test",
    19      size = "small",
    20      srcs = [
    21          "cpuid_arm64_test.go",
    22          "cpuid_x86_test.go",
    23      ],
    24      library = ":cpuid",
    25  )
    26  
    27  go_test(
    28      name = "cpuid_parse_test",
    29      size = "small",
    30      srcs = [
    31          "cpuid_parse_x86_test.go",
    32      ],
    33      library = ":cpuid",
    34      tags = ["manual"],
    35      deps = ["@org_golang_x_sys//unix:go_default_library"],
    36  )