BUILD.bazel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "reader.go",
  6. "table.go",
  7. "writer.go",
  8. ],
  9. importmap = "go-common/vendor/github.com/syndtr/goleveldb/leveldb/table",
  10. importpath = "github.com/syndtr/goleveldb/leveldb/table",
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//vendor/github.com/golang/snappy:go_default_library",
  14. "//vendor/github.com/syndtr/goleveldb/leveldb/cache:go_default_library",
  15. "//vendor/github.com/syndtr/goleveldb/leveldb/comparer:go_default_library",
  16. "//vendor/github.com/syndtr/goleveldb/leveldb/errors:go_default_library",
  17. "//vendor/github.com/syndtr/goleveldb/leveldb/filter:go_default_library",
  18. "//vendor/github.com/syndtr/goleveldb/leveldb/iterator:go_default_library",
  19. "//vendor/github.com/syndtr/goleveldb/leveldb/opt:go_default_library",
  20. "//vendor/github.com/syndtr/goleveldb/leveldb/storage:go_default_library",
  21. "//vendor/github.com/syndtr/goleveldb/leveldb/util:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [":package-srcs"],
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. )