github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/flipcall/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  licenses(["notice"])
     4  
     5  go_library(
     6      name = "flipcall",
     7      srcs = [
     8          "ctrl_futex.go",
     9          "flipcall.go",
    10          "flipcall_unsafe.go",
    11          "futex_linux.go",
    12          "io.go",
    13          "packet_window.go",
    14      ],
    15      visibility = ["//visibility:public"],
    16      deps = [
    17          "//pkg/abi/linux",
    18          "//pkg/log",
    19          "//pkg/memutil",
    20          "//pkg/sync",
    21          "@org_golang_x_sys//unix:go_default_library",
    22      ],
    23  )
    24  
    25  go_test(
    26      name = "flipcall_test",
    27      size = "small",
    28      srcs = [
    29          "flipcall_example_test.go",
    30          "flipcall_test.go",
    31      ],
    32      library = ":flipcall",
    33      deps = ["//pkg/sync"],
    34  )