BUILD.bazel 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//proto:def.bzl",
  7. "go_proto_library",
  8. )
  9. proto_library(
  10. name = "proto_proto",
  11. srcs = ["test.proto"],
  12. tags = ["automanaged"],
  13. visibility = ["//visibility:public"],
  14. )
  15. go_proto_library(
  16. name = "proto_go_proto",
  17. compilers = ["@io_bazel_rules_go//proto:go_proto"],
  18. importpath = "go-common/library/cache/memcache/test",
  19. proto = ":proto_proto",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [],
  26. embed = [":proto_go_proto"],
  27. importpath = "go-common/library/cache/memcache/test",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = ["@com_github_golang_protobuf//proto:go_default_library"],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )