gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/kernel/time/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     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 = "seqatomic_clock",
    11      out = "seqatomic_clock_unsafe.go",
    12      package = "time",
    13      suffix = "Clock",
    14      template = "//pkg/sync/seqatomic:generic_seqatomic",
    15      types = {
    16          "Value": "Clock",
    17      },
    18  )
    19  
    20  go_library(
    21      name = "time",
    22      srcs = [
    23          "context.go",
    24          "seqatomic_clock_unsafe.go",
    25          "time.go",
    26          "util.go",
    27      ],
    28      visibility = ["//pkg/sentry:internal"],
    29      deps = [
    30          "//pkg/abi/linux",
    31          "//pkg/context",
    32          "//pkg/errors/linuxerr",
    33          "//pkg/gohacks",
    34          "//pkg/sync",
    35          "//pkg/waiter",
    36      ],
    37  )