github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/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(licenses = ["notice"]) 5 6 go_template_instance( 7 name = "shm_refs", 8 out = "shm_refs.go", 9 consts = { 10 "enableLogging": "true", 11 }, 12 package = "shm", 13 prefix = "Shm", 14 template = "//pkg/refsvfs2:refs_template", 15 types = { 16 "T": "Shm", 17 }, 18 ) 19 20 go_library( 21 name = "shm", 22 srcs = [ 23 "device.go", 24 "shm.go", 25 "shm_refs.go", 26 ], 27 visibility = ["//pkg/sentry:internal"], 28 deps = [ 29 "//pkg/abi/linux", 30 "//pkg/context", 31 "//pkg/errors/linuxerr", 32 "//pkg/hostarch", 33 "//pkg/log", 34 "//pkg/refs", 35 "//pkg/refsvfs2", 36 "//pkg/sentry/device", 37 "//pkg/sentry/fs", 38 "//pkg/sentry/kernel/auth", 39 "//pkg/sentry/kernel/time", 40 "//pkg/sentry/memmap", 41 "//pkg/sentry/pgalloc", 42 "//pkg/sentry/usage", 43 "//pkg/sync", 44 "//pkg/syserror", 45 "//pkg/usermem", 46 ], 47 )