gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/tools/embeddedbinary/test/helloworld/BUILD (about) 1 load("//tools:defs.bzl", "go_binary") 2 load("//tools/embeddedbinary:defs.bzl", "embedded_binary_go_library") 3 4 package( 5 default_applicable_licenses = ["//:license"], 6 licenses = ["notice"], 7 ) 8 9 # helloworld_bundlee is a simple Go program that prints "Hello, gVisor!\n" 10 # to stdout. It is bundled by other rules. 11 go_binary( 12 name = "helloworld_bundlee", 13 srcs = ["helloworld_bundlee.go"], 14 ) 15 16 # helloworld generates a Go source file called "helloworld.go" which embeds 17 # the helloworld_bundlee program. 18 embedded_binary_go_library( 19 name = "helloworld", 20 binary = ":helloworld_bundlee", 21 visibility = [ 22 "//tools/embeddedbinary/test:__subpackages__", 23 ], 24 )