go-common/vendor/github.com/prometheus/common/log/BUILD.bazel
2019-04-22 18:49:16 +08:00

36 lines
926 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"eventlog_formatter.go",
"log.go",
"syslog_formatter.go",
],
importmap = "go-common/vendor/github.com/prometheus/common/log",
importpath = "github.com/prometheus/common/log",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/sirupsen/logrus:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/golang.org/x/sys/windows/svc/eventlog: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"],
)