gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/waiter/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 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 = "waiter_list", 11 out = "waiter_list.go", 12 package = "waiter", 13 prefix = "waiter", 14 template = "//pkg/ilist:generic_list", 15 types = { 16 "Element": "*Entry", 17 "Linker": "*Entry", 18 }, 19 ) 20 21 go_library( 22 name = "waiter", 23 srcs = [ 24 "waiter.go", 25 "waiter_list.go", 26 ], 27 visibility = ["//visibility:public"], 28 deps = [ 29 "//pkg/sync", 30 ], 31 ) 32 33 go_test( 34 name = "waiter_test", 35 size = "small", 36 srcs = [ 37 "waiter_test.go", 38 ], 39 library = ":waiter", 40 deps = ["//pkg/atomicbitops"], 41 )