Files
visor/tools/embeddedbinary/BUILD
T
Etienne PerotandgVisor bot 3fb829f070 Add tool to generate a Go library that executes an embedded compressed binary.
This creates a `go_template` that can generate a `go_library` rule which
extracts a compressed binary to a temporary location, then executes it.

This is useful to implement `runsc` subcommands without requiring that these
subcommands' dependencies are linked into the main `runsc` binary.

PiperOrigin-RevId: 557270682
2023-08-15 15:32:43 -07:00

32 lines
574 B
Python

load("//tools:defs.bzl", "bzl_library", "go_binary")
load("//tools/go_generics:defs.bzl", "go_template")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
bzl_library(
name = "defs_bzl",
srcs = ["defs.bzl"],
visibility = [
"//:sandbox",
],
)
go_template(
name = "embeddedbinary_template",
srcs = ["embeddedbinary_template.go"],
visibility = [
"//:sandbox",
],
)
go_binary(
name = "flatecompress",
srcs = ["flatecompress.go"],
visibility = [
"//:sandbox",
],
)