BUILD.bazel 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "batch.go",
  6. "comparer.go",
  7. "db.go",
  8. "db_compaction.go",
  9. "db_iter.go",
  10. "db_snapshot.go",
  11. "db_state.go",
  12. "db_transaction.go",
  13. "db_util.go",
  14. "db_write.go",
  15. "doc.go",
  16. "errors.go",
  17. "filter.go",
  18. "key.go",
  19. "options.go",
  20. "session.go",
  21. "session_compaction.go",
  22. "session_record.go",
  23. "session_util.go",
  24. "storage.go",
  25. "table.go",
  26. "util.go",
  27. "version.go",
  28. ],
  29. importmap = "go-common/vendor/github.com/syndtr/goleveldb/leveldb",
  30. importpath = "github.com/syndtr/goleveldb/leveldb",
  31. visibility = ["//visibility:public"],
  32. deps = [
  33. "//vendor/github.com/syndtr/goleveldb/leveldb/cache:go_default_library",
  34. "//vendor/github.com/syndtr/goleveldb/leveldb/comparer:go_default_library",
  35. "//vendor/github.com/syndtr/goleveldb/leveldb/errors:go_default_library",
  36. "//vendor/github.com/syndtr/goleveldb/leveldb/filter:go_default_library",
  37. "//vendor/github.com/syndtr/goleveldb/leveldb/iterator:go_default_library",
  38. "//vendor/github.com/syndtr/goleveldb/leveldb/journal:go_default_library",
  39. "//vendor/github.com/syndtr/goleveldb/leveldb/memdb:go_default_library",
  40. "//vendor/github.com/syndtr/goleveldb/leveldb/opt:go_default_library",
  41. "//vendor/github.com/syndtr/goleveldb/leveldb/storage:go_default_library",
  42. "//vendor/github.com/syndtr/goleveldb/leveldb/table:go_default_library",
  43. "//vendor/github.com/syndtr/goleveldb/leveldb/util:go_default_library",
  44. ],
  45. )
  46. filegroup(
  47. name = "package-srcs",
  48. srcs = glob(["**"]),
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:private"],
  51. )
  52. filegroup(
  53. name = "all-srcs",
  54. srcs = [
  55. ":package-srcs",
  56. "//vendor/github.com/syndtr/goleveldb/leveldb/cache:all-srcs",
  57. "//vendor/github.com/syndtr/goleveldb/leveldb/comparer:all-srcs",
  58. "//vendor/github.com/syndtr/goleveldb/leveldb/errors:all-srcs",
  59. "//vendor/github.com/syndtr/goleveldb/leveldb/filter:all-srcs",
  60. "//vendor/github.com/syndtr/goleveldb/leveldb/iterator:all-srcs",
  61. "//vendor/github.com/syndtr/goleveldb/leveldb/journal:all-srcs",
  62. "//vendor/github.com/syndtr/goleveldb/leveldb/memdb:all-srcs",
  63. "//vendor/github.com/syndtr/goleveldb/leveldb/opt:all-srcs",
  64. "//vendor/github.com/syndtr/goleveldb/leveldb/storage:all-srcs",
  65. "//vendor/github.com/syndtr/goleveldb/leveldb/table:all-srcs",
  66. "//vendor/github.com/syndtr/goleveldb/leveldb/util:all-srcs",
  67. ],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )