github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/link/tun/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 = "tun_endpoint_refs", 8 out = "tun_endpoint_refs.go", 9 package = "tun", 10 prefix = "tunEndpoint", 11 template = "//pkg/refsvfs2:refs_template", 12 types = { 13 "T": "tunEndpoint", 14 }, 15 ) 16 17 go_library( 18 name = "tun", 19 srcs = [ 20 "device.go", 21 "protocol.go", 22 "tun_endpoint_refs.go", 23 "tun_unsafe.go", 24 ], 25 visibility = ["//visibility:public"], 26 deps = [ 27 "//pkg/abi/linux", 28 "//pkg/context", 29 "//pkg/errors/linuxerr", 30 "//pkg/log", 31 "//pkg/refs", 32 "//pkg/refsvfs2", 33 "//pkg/sync", 34 "//pkg/syserror", 35 "//pkg/tcpip", 36 "//pkg/tcpip/buffer", 37 "//pkg/tcpip/header", 38 "//pkg/tcpip/link/channel", 39 "//pkg/tcpip/stack", 40 "//pkg/waiter", 41 "@org_golang_x_sys//unix:go_default_library", 42 ], 43 )