BUILD.bazel 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "counters.go",
  6. "engine.go",
  7. "indexer_worker.go",
  8. "info.go",
  9. "ranker_worker.go",
  10. "riot.go",
  11. "riot_pkg.go",
  12. "segment.go",
  13. "stop_tokens.go",
  14. "store_worker.go",
  15. ],
  16. importmap = "go-common/vendor/github.com/go-ego/riot",
  17. importpath = "github.com/go-ego/riot",
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//vendor/github.com/coreos/bbolt:go_default_library",
  21. "//vendor/github.com/dgraph-io/badger:go_default_library",
  22. "//vendor/github.com/go-ego/gpy:go_default_library",
  23. "//vendor/github.com/go-ego/gse:go_default_library",
  24. "//vendor/github.com/go-ego/murmur:go_default_library",
  25. "//vendor/github.com/go-ego/riot/core:go_default_library",
  26. "//vendor/github.com/go-ego/riot/store:go_default_library",
  27. "//vendor/github.com/go-ego/riot/types:go_default_library",
  28. "//vendor/github.com/go-ego/riot/utils:go_default_library",
  29. "//vendor/github.com/go-vgo/gt/conf:go_default_library",
  30. "//vendor/github.com/go-vgo/gt/info:go_default_library",
  31. "//vendor/github.com/shirou/gopsutil/mem:go_default_library",
  32. "//vendor/github.com/syndtr/goleveldb/leveldb:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [
  44. ":package-srcs",
  45. "//vendor/github.com/go-ego/riot/core:all-srcs",
  46. "//vendor/github.com/go-ego/riot/store:all-srcs",
  47. "//vendor/github.com/go-ego/riot/types:all-srcs",
  48. "//vendor/github.com/go-ego/riot/utils:all-srcs",
  49. ],
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:public"],
  52. )