summaryrefslogtreecommitdiffhomepage
path: root/pkg/waiter/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/waiter/BUILD')
-rw-r--r--pkg/waiter/BUILD27
1 files changed, 25 insertions, 2 deletions
diff --git a/pkg/waiter/BUILD b/pkg/waiter/BUILD
index b748246da..48ce063d7 100644
--- a/pkg/waiter/BUILD
+++ b/pkg/waiter/BUILD
@@ -1,13 +1,28 @@
package(licenses = ["notice"])
+load("//tools/go_generics:defs.bzl", "go_template_instance")
load("//tools/go_stateify:defs.bzl", "go_library", "go_test")
+go_template_instance(
+ name = "waiter_list",
+ out = "waiter_list.go",
+ package = "waiter",
+ prefix = "waiter",
+ template = "//pkg/ilist:generic_list",
+ types = {
+ "Element": "*Entry",
+ "Linker": "*Entry",
+ },
+)
+
go_library(
name = "waiter",
- srcs = ["waiter.go"],
+ srcs = [
+ "waiter.go",
+ "waiter_list.go",
+ ],
importpath = "gvisor.googlesource.com/gvisor/pkg/waiter",
visibility = ["//visibility:public"],
- deps = ["//pkg/ilist"],
)
go_test(
@@ -18,3 +33,11 @@ go_test(
],
embed = [":waiter"],
)
+
+filegroup(
+ name = "autogen",
+ srcs = [
+ "waiter_list.go",
+ ],
+ visibility = ["//:sandbox"],
+)