github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/link/sharedmem/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "sharedmem", 7 srcs = [ 8 "rx.go", 9 "sharedmem.go", 10 "sharedmem_unsafe.go", 11 "tx.go", 12 ], 13 visibility = ["//visibility:public"], 14 deps = [ 15 "//pkg/log", 16 "//pkg/sync", 17 "//pkg/tcpip", 18 "//pkg/tcpip/buffer", 19 "//pkg/tcpip/header", 20 "//pkg/tcpip/link/rawfile", 21 "//pkg/tcpip/link/sharedmem/queue", 22 "//pkg/tcpip/stack", 23 "@org_golang_x_sys//unix:go_default_library", 24 ], 25 ) 26 27 go_test( 28 name = "sharedmem_test", 29 srcs = [ 30 "sharedmem_test.go", 31 ], 32 library = ":sharedmem", 33 deps = [ 34 "//pkg/sync", 35 "//pkg/tcpip", 36 "//pkg/tcpip/buffer", 37 "//pkg/tcpip/header", 38 "//pkg/tcpip/link/sharedmem/pipe", 39 "//pkg/tcpip/link/sharedmem/queue", 40 "//pkg/tcpip/stack", 41 "@org_golang_x_sys//unix:go_default_library", 42 ], 43 )