gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/bpf/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "bpf",
    10      srcs = [
    11          "bpf.go",
    12          "bpf_unsafe.go",
    13          "decoder.go",
    14          "input_bytes.go",
    15          "interpreter.go",
    16          "optimizer.go",
    17          "program_builder.go",
    18      ],
    19      imports = ["gvisor.dev/gvisor/pkg/abi/linux"],
    20      visibility = ["//visibility:public"],
    21      deps = ["//pkg/abi/linux"],
    22  )
    23  
    24  go_test(
    25      name = "bpf_test",
    26      size = "small",
    27      srcs = [
    28          "bpf_test.go",
    29          "decoder_test.go",
    30          "interpreter_test.go",
    31          "optimizer_test.go",
    32          "program_builder_test.go",
    33      ],
    34      library = ":bpf",
    35      deps = [
    36          "//pkg/abi/linux",
    37          "//pkg/hostarch",
    38          "//pkg/marshal",
    39      ],
    40  )