90 lines
3.4 KiB
Python
90 lines
3.4 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"process.go",
|
|
"process_darwin.go",
|
|
"process_darwin_386.go",
|
|
"process_darwin_amd64.go",
|
|
"process_fallback.go",
|
|
"process_freebsd.go",
|
|
"process_freebsd_386.go",
|
|
"process_freebsd_amd64.go",
|
|
"process_freebsd_arm.go",
|
|
"process_linux.go",
|
|
"process_openbsd.go",
|
|
"process_openbsd_amd64.go",
|
|
"process_posix.go",
|
|
"process_windows.go",
|
|
"process_windows_386.go",
|
|
"process_windows_amd64.go",
|
|
],
|
|
cgo = True,
|
|
importmap = "go-common/vendor/github.com/shirou/gopsutil/process",
|
|
importpath = "github.com/shirou/gopsutil/process",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//vendor/github.com/shirou/gopsutil/cpu:go_default_library",
|
|
"//vendor/github.com/shirou/gopsutil/internal/common:go_default_library",
|
|
"//vendor/github.com/shirou/gopsutil/mem:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//vendor/github.com/shirou/gopsutil/host:go_default_library",
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
"//vendor/github.com/StackExchange/wmi:go_default_library",
|
|
"//vendor/github.com/shirou/gopsutil/net:go_default_library",
|
|
"//vendor/github.com/shirou/w32:go_default_library",
|
|
"//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"],
|
|
)
|