bilibili-backup/library/cache/BUILD

45 lines
948 B
Python
Raw Permalink Normal View History

2019-04-22 10:59:20 +08:00
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_test",
"go_library",
)
go_test(
name = "go_default_test",
srcs = ["cache_test.go"],
embed = [":go_default_library"],
tags = ["automanaged"],
)
go_library(
name = "go_default_library",
srcs = ["cache.go"],
importpath = "go-common/library/cache",
tags = ["automanaged"],
visibility = ["//visibility:public"],
deps = [
"//library/log:go_default_library",
"//library/stat/prom:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//library/cache/memcache:all-srcs",
"//library/cache/redis:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)