BUILD.bazel 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [],
  9. embed = [":protos_go_proto"],
  10. importmap = "go-common/vendor/github.com/dgraph-io/badger/protos",
  11. importpath = "github.com/dgraph-io/badger/protos",
  12. tags = ["manual"],
  13. visibility = ["//visibility:public"],
  14. deps = ["@com_github_golang_protobuf//proto:go_default_library"],
  15. )
  16. proto_library(
  17. name = "protos_proto",
  18. srcs = [
  19. "backup.proto",
  20. "manifest.proto",
  21. ],
  22. tags = ["automanaged"],
  23. )
  24. go_proto_library(
  25. name = "protos_go_proto",
  26. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  27. importpath = "go-common/vendor/github.com/dgraph-io/badger/protos",
  28. proto = ":protos_proto",
  29. tags = ["manual"],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )