summaryrefslogtreecommitdiffhomepage
path: root/pkg/waiter/BUILD
blob: 032ec32370957e2a8e3335ea3a60c48b5020e71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package(licenses = ["notice"])  # Apache 2.0

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("//tools/go_stateify:defs.bzl", "go_stateify")

go_stateify(
    name = "waiter_state",
    srcs = [
        "waiter.go",
    ],
    out = "waiter_state.go",
    package = "waiter",
)

go_library(
    name = "waiter",
    srcs = [
        "waiter.go",
        "waiter_state.go",
    ],
    importpath = "gvisor.googlesource.com/gvisor/pkg/waiter",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/ilist",
        "//pkg/state",
    ],
)

go_test(
    name = "waiter_test",
    size = "small",
    srcs = [
        "waiter_test.go",
    ],
    embed = [":waiter"],
)