bilibili-backup/vendor/github.com/shirou/gopsutil/mem/BUILD.bazel

54 lines
1.5 KiB
Python
Raw Normal View History

2019-04-22 10:59:20 +08:00
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"mem.go",
"mem_darwin.go",
"mem_darwin_cgo.go",
"mem_darwin_nocgo.go",
"mem_fallback.go",
"mem_freebsd.go",
"mem_linux.go",
"mem_openbsd.go",
"mem_openbsd_amd64.go",
"mem_solaris.go",
"mem_windows.go",
],
cgo = True,
importmap = "go-common/vendor/github.com/shirou/gopsutil/mem",
importpath = "github.com/shirou/gopsutil/mem",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/shirou/gopsutil/internal/common:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:darwin": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/golang.org/x/sys/windows:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)