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

     1  load("//pkg/sync/locking:locking.bzl", "declare_mutex")
     2  load("//tools:defs.bzl", "go_library")
     3  
     4  package(
     5      default_applicable_licenses = ["//:license"],
     6      licenses = ["notice"],
     7  )
     8  
     9  declare_mutex(
    10      name = "memory_mutex",
    11      out = "memory_mutex.go",
    12      package = "usage",
    13      prefix = "memory",
    14  )
    15  
    16  go_library(
    17      name = "usage",
    18      srcs = [
    19          "cpu.go",
    20          "io.go",
    21          "memory.go",
    22          "memory_mutex.go",
    23          "memory_unsafe.go",
    24          "usage.go",
    25      ],
    26      visibility = [
    27          "//:sandbox",
    28      ],
    29      deps = [
    30          "//pkg/atomicbitops",
    31          "//pkg/bits",
    32          "//pkg/memutil",
    33          "//pkg/sync",
    34          "//pkg/sync/locking",
    35          "@org_golang_x_sys//unix:go_default_library",
    36      ],
    37  )