gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/fsimpl/erofs/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 = "fstree", 11 out = "fstree.go", 12 package = "erofs", 13 prefix = "generic", 14 template = "//pkg/sentry/vfs/genericfstree:generic_fstree", 15 types = { 16 "Dentry": "dentry", 17 }, 18 ) 19 20 go_template_instance( 21 name = "dentry_refs", 22 out = "dentry_refs.go", 23 package = "erofs", 24 prefix = "dentry", 25 template = "//pkg/refs:refs_template", 26 types = { 27 "T": "dentry", 28 }, 29 ) 30 31 go_template_instance( 32 name = "inode_refs", 33 out = "inode_refs.go", 34 package = "erofs", 35 prefix = "inode", 36 template = "//pkg/refs:refs_template", 37 types = { 38 "T": "inode", 39 }, 40 ) 41 42 go_library( 43 name = "erofs", 44 srcs = [ 45 "dentry_refs.go", 46 "directory.go", 47 "erofs.go", 48 "filesystem.go", 49 "fstree.go", 50 "inode_refs.go", 51 "regular_file.go", 52 "save_restore.go", 53 ], 54 visibility = ["//pkg/sentry:internal"], 55 deps = [ 56 "//pkg/abi/linux", 57 "//pkg/atomicbitops", 58 "//pkg/cleanup", 59 "//pkg/context", 60 "//pkg/erofs", 61 "//pkg/errors/linuxerr", 62 "//pkg/fspath", 63 "//pkg/hostarch", 64 "//pkg/refs", 65 "//pkg/safemem", 66 "//pkg/sentry/fsimpl/lock", 67 "//pkg/sentry/fsutil", 68 "//pkg/sentry/kernel/auth", 69 "//pkg/sentry/memmap", 70 "//pkg/sentry/socket/unix/transport", 71 "//pkg/sentry/vfs", 72 "//pkg/usermem", 73 ], 74 )