BUILD.bazel 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "bolt_386.go",
  6. "bolt_amd64.go",
  7. "bolt_arm.go",
  8. "bolt_arm64.go",
  9. "bolt_linux.go",
  10. "bolt_mips64x.go",
  11. "bolt_mipsx.go",
  12. "bolt_openbsd.go",
  13. "bolt_ppc64.go",
  14. "bolt_ppc64le.go",
  15. "bolt_s390x.go",
  16. "bolt_unix.go",
  17. "bolt_unix_solaris.go",
  18. "bolt_windows.go",
  19. "boltsync_unix.go",
  20. "bucket.go",
  21. "cursor.go",
  22. "db.go",
  23. "doc.go",
  24. "errors.go",
  25. "freelist.go",
  26. "node.go",
  27. "page.go",
  28. "tx.go",
  29. ],
  30. importmap = "go-common/vendor/github.com/coreos/bbolt",
  31. importpath = "github.com/coreos/bbolt",
  32. visibility = ["//visibility:public"],
  33. deps = select({
  34. "@io_bazel_rules_go//go/platform:solaris": [
  35. "//vendor/golang.org/x/sys/unix:go_default_library",
  36. ],
  37. "//conditions:default": [],
  38. }),
  39. )
  40. filegroup(
  41. name = "package-srcs",
  42. srcs = glob(["**"]),
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:private"],
  45. )
  46. filegroup(
  47. name = "all-srcs",
  48. srcs = [":package-srcs"],
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. )