BUILD.bazel 766 B

123456789101112131415161718192021222324252627282930313233
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "decode.go",
  6. "decode_amd64.go",
  7. "decode_amd64.s",
  8. "decode_other.go",
  9. "encode.go",
  10. "encode_amd64.go",
  11. "encode_amd64.s",
  12. "encode_other.go",
  13. "snappy.go",
  14. ],
  15. importmap = "go-common/vendor/github.com/golang/snappy",
  16. importpath = "github.com/golang/snappy",
  17. visibility = ["//visibility:public"],
  18. )
  19. filegroup(
  20. name = "package-srcs",
  21. srcs = glob(["**"]),
  22. tags = ["automanaged"],
  23. visibility = ["//visibility:private"],
  24. )
  25. filegroup(
  26. name = "all-srcs",
  27. srcs = [":package-srcs"],
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. )