1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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"],
- )
|