github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/link/fdbased/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "fdbased", 7 srcs = [ 8 "endpoint.go", 9 "endpoint_unsafe.go", 10 "mmap.go", 11 "mmap_stub.go", 12 "mmap_unsafe.go", 13 "packet_dispatchers.go", 14 ], 15 visibility = ["//visibility:public"], 16 deps = [ 17 "//pkg/sync", 18 "//pkg/tcpip", 19 "//pkg/tcpip/buffer", 20 "//pkg/tcpip/header", 21 "//pkg/tcpip/link/rawfile", 22 "//pkg/tcpip/stack", 23 "@org_golang_x_sys//unix:go_default_library", 24 ], 25 ) 26 27 go_test( 28 name = "fdbased_test", 29 size = "small", 30 srcs = ["endpoint_test.go"], 31 library = ":fdbased", 32 deps = [ 33 "//pkg/tcpip", 34 "//pkg/tcpip/buffer", 35 "//pkg/tcpip/header", 36 "//pkg/tcpip/stack", 37 "@com_github_google_go_cmp//cmp:go_default_library", 38 "@org_golang_x_sys//unix:go_default_library", 39 ], 40 )