BUILD 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_binary",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "header_template.go",
  10. "main.go",
  11. "multi_template.go",
  12. "none_template.go",
  13. "single_template.go",
  14. ],
  15. importpath = "go-common/app/tool/cache",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:private"],
  18. deps = ["//app/tool/cache/common:go_default_library"],
  19. )
  20. go_binary(
  21. name = "cache",
  22. embed = [":go_default_library"],
  23. visibility = ["//visibility:public"],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [
  34. ":package-srcs",
  35. "//app/tool/cache/common:all-srcs",
  36. "//app/tool/cache/memcached:all-srcs",
  37. "//app/tool/cache/testdata:all-srcs",
  38. ],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )