BUILD.bazel 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "backup.go",
  6. "compaction.go",
  7. "db.go",
  8. "dir_unix.go",
  9. "doc.go",
  10. "errors.go",
  11. "iterator.go",
  12. "level_handler.go",
  13. "levels.go",
  14. "managed_db.go",
  15. "manifest.go",
  16. "options.go",
  17. "structs.go",
  18. "transaction.go",
  19. "util.go",
  20. "value.go",
  21. ],
  22. importmap = "go-common/vendor/github.com/dgraph-io/badger",
  23. importpath = "github.com/dgraph-io/badger",
  24. tags = ["manual"],
  25. visibility = ["//visibility:public"],
  26. deps = [
  27. "//vendor/github.com/dgraph-io/badger/options:go_default_library",
  28. "//vendor/github.com/dgraph-io/badger/protos:go_default_library",
  29. "//vendor/github.com/dgraph-io/badger/skl:go_default_library",
  30. "//vendor/github.com/dgraph-io/badger/table:go_default_library",
  31. "//vendor/github.com/dgraph-io/badger/y:go_default_library",
  32. "//vendor/github.com/dgryski/go-farm:go_default_library",
  33. "//vendor/github.com/pkg/errors:go_default_library",
  34. "//vendor/golang.org/x/sys/unix:go_default_library",
  35. "@org_golang_x_net//trace:go_default_library",
  36. ],
  37. )
  38. filegroup(
  39. name = "package-srcs",
  40. srcs = glob(["**"]),
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:private"],
  43. )
  44. filegroup(
  45. name = "all-srcs",
  46. srcs = [
  47. ":package-srcs",
  48. "//vendor/github.com/dgraph-io/badger/options:all-srcs",
  49. "//vendor/github.com/dgraph-io/badger/protos:all-srcs",
  50. "//vendor/github.com/dgraph-io/badger/skl:all-srcs",
  51. "//vendor/github.com/dgraph-io/badger/table:all-srcs",
  52. "//vendor/github.com/dgraph-io/badger/y:all-srcs",
  53. ],
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:public"],
  56. )