gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/tools/bazeldefs/BUILD (about)

     1  load("//tools:defs.bzl", "bzl_library")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      default_visibility = ["//:sandbox"],
     6      licenses = ["notice"],
     7  )
     8  
     9  bzl_library(
    10      name = "platforms_bzl",
    11      srcs = ["platforms.bzl"],
    12      visibility = ["//:sandbox"],
    13  )
    14  
    15  bzl_library(
    16      name = "tags_bzl",
    17      srcs = ["tags.bzl"],
    18      visibility = ["//visibility:private"],
    19  )
    20  
    21  bzl_library(
    22      name = "defs_bzl",
    23      srcs = ["defs.bzl"],
    24      visibility = ["//visibility:private"],
    25  )
    26  
    27  config_setting(
    28      name = "amd64",
    29      values = {"cpu": "k8"},
    30  )
    31  
    32  config_setting(
    33      name = "arm64",
    34      values = {"cpu": "aarch64"},
    35  )
    36  
    37  config_setting(
    38      name = "riscv64",
    39      values = {"cpu": "riscv64"},
    40  )
    41  
    42  genrule(
    43      name = "version",
    44      outs = ["version.txt"],
    45      cmd = "cat bazel-out/stable-status.txt | grep STABLE_VERSION | cut -d' ' -f2- | sed 's/^[^[:digit:]]*//g' >$@",
    46      stamp = 1,
    47      tags = [
    48          "manual",
    49          "nobuilder",
    50          "notap",
    51      ],
    52      visibility = ["//:sandbox"],
    53  )