github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/syncevent/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 licenses(["notice"]) 4 5 go_library( 6 name = "syncevent", 7 srcs = [ 8 "broadcaster.go", 9 "receiver.go", 10 "source.go", 11 "syncevent.go", 12 "waiter_unsafe.go", 13 ], 14 visibility = ["//:sandbox"], 15 deps = [ 16 "//pkg/atomicbitops", 17 "//pkg/sync", 18 ], 19 ) 20 21 go_test( 22 name = "syncevent_test", 23 size = "small", 24 srcs = [ 25 "broadcaster_test.go", 26 "syncevent_example_test.go", 27 "waiter_test.go", 28 ], 29 library = ":syncevent", 30 deps = [ 31 "//pkg/sleep", 32 "//pkg/sync", 33 "//pkg/waiter", 34 ], 35 )