gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/seccomp/precompiledseccomp/example/usage/BUILD (about)

     1  load("//pkg/seccomp/precompiledseccomp:defs.bzl", "precompiled_seccomp_rules")
     2  load("//tools:defs.bzl", "go_library", "go_test")
     3  
     4  package(
     5      default_applicable_licenses = ["//:license"],
     6      licenses = ["notice"],
     7  )
     8  
     9  precompiled_seccomp_rules(
    10      name = "example_precompiled",
    11      out = "usage_embedded.go",
    12      out_package_name = "usage",
    13      programs_to_compile_go_import = "gvisor.dev/gvisor/pkg/seccomp/precompiledseccomp/example",
    14      programs_to_compile_go_library = "//pkg/seccomp/precompiledseccomp/example",
    15  )
    16  
    17  go_library(
    18      name = "usage",
    19      srcs = [
    20          "usage.go",
    21          "usage_embedded.go",
    22      ],
    23      deps = [
    24          "//pkg/bpf",
    25          "//pkg/seccomp/precompiledseccomp",
    26          "//pkg/seccomp/precompiledseccomp/example",
    27          "//pkg/sync",
    28      ],
    29  )
    30  
    31  go_test(
    32      name = "usage_test",
    33      srcs = ["usage_test.go"],
    34      library = ":usage",
    35      deps = [
    36          "//pkg/bpf",
    37          "//pkg/seccomp",
    38          "//pkg/seccomp/precompiledseccomp",
    39          "//pkg/seccomp/precompiledseccomp/example",
    40      ],
    41  )