gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/kernel/shm/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 = "shm_refs",
    11      out = "shm_refs.go",
    12      consts = {
    13          "enableLogging": "true",
    14      },
    15      package = "shm",
    16      prefix = "Shm",
    17      template = "//pkg/refs:refs_template",
    18      types = {
    19          "T": "Shm",
    20      },
    21  )
    22  
    23  go_library(
    24      name = "shm",
    25      srcs = [
    26          "context.go",
    27          "shm.go",
    28          "shm_refs.go",
    29      ],
    30      visibility = ["//pkg/sentry:internal"],
    31      deps = [
    32          "//pkg/abi/linux",
    33          "//pkg/atomicbitops",
    34          "//pkg/context",
    35          "//pkg/errors/linuxerr",
    36          "//pkg/hostarch",
    37          "//pkg/log",
    38          "//pkg/refs",
    39          "//pkg/sentry/kernel/auth",
    40          "//pkg/sentry/kernel/ipc",
    41          "//pkg/sentry/kernel/time",
    42          "//pkg/sentry/memmap",
    43          "//pkg/sentry/pgalloc",
    44          "//pkg/sentry/usage",
    45          "//pkg/sentry/vfs",
    46          "//pkg/sync",
    47          "//pkg/usermem",
    48      ],
    49  )