12345678910111213141516171819202122232425262728293031323334353637383940 |
- load("@io_bazel_rules_go//go:def.bzl", "go_library")
- go_library(
- name = "go_default_library",
- srcs = [
- "net.go",
- "net_darwin.go",
- "net_fallback.go",
- "net_freebsd.go",
- "net_linux.go",
- "net_openbsd.go",
- "net_unix.go",
- "net_windows.go",
- ],
- importmap = "go-common/vendor/github.com/shirou/gopsutil/net",
- importpath = "github.com/shirou/gopsutil/net",
- visibility = ["//visibility:public"],
- deps = [
- "//vendor/github.com/shirou/gopsutil/internal/common:go_default_library",
- ] + select({
- "@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"],
- )
|