BUILD.bazel 714 B

1234567891011121314151617181920212223242526272829303132
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "city64.go",
  6. "cityhash.go",
  7. ],
  8. importmap = "go-common/vendor/github.com/zhenjl/cityhash",
  9. importpath = "github.com/zhenjl/cityhash",
  10. visibility = ["//visibility:public"],
  11. )
  12. go_test(
  13. name = "go_default_test",
  14. srcs = ["cityhash_test.go"],
  15. embed = [":go_default_library"],
  16. )
  17. filegroup(
  18. name = "package-srcs",
  19. srcs = glob(["**"]),
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:private"],
  22. )
  23. filegroup(
  24. name = "all-srcs",
  25. srcs = [":package-srcs"],
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:public"],
  28. )