BUILD.bazel 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "net.go",
  6. "net_darwin.go",
  7. "net_fallback.go",
  8. "net_freebsd.go",
  9. "net_linux.go",
  10. "net_openbsd.go",
  11. "net_unix.go",
  12. "net_windows.go",
  13. ],
  14. importmap = "go-common/vendor/github.com/shirou/gopsutil/net",
  15. importpath = "github.com/shirou/gopsutil/net",
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//vendor/github.com/shirou/gopsutil/internal/common:go_default_library",
  19. ] + select({
  20. "@io_bazel_rules_go//go/platform:windows": [
  21. "//vendor/golang.org/x/sys/windows:go_default_library",
  22. ],
  23. "//conditions:default": [],
  24. }),
  25. )
  26. filegroup(
  27. name = "package-srcs",
  28. srcs = glob(["**"]),
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:private"],
  31. )
  32. filegroup(
  33. name = "all-srcs",
  34. srcs = [":package-srcs"],
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. )