kubernetes/vendor/github.com/opencontainers/runc/libcontainer/system/BUILD
2017-04-14 10:40:57 -07:00

48 lines
832 B
Python

package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"cgo_genrule",
"go_library",
)
cgo_genrule(
name = "cgo_codegen",
srcs = ["sysconfig.go"],
clinkopts = [
"-lz",
"-lm",
"-lpthread",
"-ldl",
],
tags = ["automanaged"],
)
go_library(
name = "go_default_library",
srcs = [
"linux.go",
"proc.go",
"setns_linux.go",
"syscall_linux_64.go",
"xattrs_linux.go",
],
library = ":cgo_codegen",
tags = ["automanaged"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)