BUILD.bazel 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "process.go",
  6. "process_darwin.go",
  7. "process_darwin_386.go",
  8. "process_darwin_amd64.go",
  9. "process_fallback.go",
  10. "process_freebsd.go",
  11. "process_freebsd_386.go",
  12. "process_freebsd_amd64.go",
  13. "process_freebsd_arm.go",
  14. "process_linux.go",
  15. "process_openbsd.go",
  16. "process_openbsd_amd64.go",
  17. "process_posix.go",
  18. "process_windows.go",
  19. "process_windows_386.go",
  20. "process_windows_amd64.go",
  21. ],
  22. cgo = True,
  23. importmap = "go-common/vendor/github.com/shirou/gopsutil/process",
  24. importpath = "github.com/shirou/gopsutil/process",
  25. visibility = ["//visibility:public"],
  26. deps = [
  27. "//vendor/github.com/shirou/gopsutil/cpu:go_default_library",
  28. "//vendor/github.com/shirou/gopsutil/internal/common:go_default_library",
  29. "//vendor/github.com/shirou/gopsutil/mem:go_default_library",
  30. ] + select({
  31. "@io_bazel_rules_go//go/platform:android": [
  32. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  33. ],
  34. "@io_bazel_rules_go//go/platform:darwin": [
  35. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  36. "//vendor/golang.org/x/sys/unix:go_default_library",
  37. ],
  38. "@io_bazel_rules_go//go/platform:dragonfly": [
  39. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  40. ],
  41. "@io_bazel_rules_go//go/platform:freebsd": [
  42. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  43. "//vendor/golang.org/x/sys/unix:go_default_library",
  44. ],
  45. "@io_bazel_rules_go//go/platform:linux": [
  46. "//vendor/github.com/shirou/gopsutil/host:go_default_library",
  47. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  48. "//vendor/golang.org/x/sys/unix:go_default_library",
  49. ],
  50. "@io_bazel_rules_go//go/platform:nacl": [
  51. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  52. ],
  53. "@io_bazel_rules_go//go/platform:netbsd": [
  54. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  55. ],
  56. "@io_bazel_rules_go//go/platform:openbsd": [
  57. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  58. "//vendor/golang.org/x/sys/unix:go_default_library",
  59. ],
  60. "@io_bazel_rules_go//go/platform:plan9": [
  61. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  62. ],
  63. "@io_bazel_rules_go//go/platform:solaris": [
  64. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  65. ],
  66. "@io_bazel_rules_go//go/platform:windows": [
  67. "//vendor/github.com/StackExchange/wmi:go_default_library",
  68. "//vendor/github.com/shirou/gopsutil/net:go_default_library",
  69. "//vendor/github.com/shirou/w32:go_default_library",
  70. "//vendor/golang.org/x/sys/windows:go_default_library",
  71. ],
  72. "//conditions:default": [],
  73. }),
  74. )
  75. filegroup(
  76. name = "package-srcs",
  77. srcs = glob(["**"]),
  78. tags = ["automanaged"],
  79. visibility = ["//visibility:private"],
  80. )
  81. filegroup(
  82. name = "all-srcs",
  83. srcs = [":package-srcs"],
  84. tags = ["automanaged"],
  85. visibility = ["//visibility:public"],
  86. )