BUILD.bazel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "binlogstreamer.go",
  7. "binlogsyncer.go",
  8. "const.go",
  9. "doc.go",
  10. "event.go",
  11. "generic_event.go",
  12. "json_binary.go",
  13. "parser.go",
  14. "row_event.go",
  15. "time.go",
  16. ],
  17. importmap = "go-common/vendor/github.com/siddontang/go-mysql/replication",
  18. importpath = "github.com/siddontang/go-mysql/replication",
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//vendor/github.com/juju/errors:go_default_library",
  22. "//vendor/github.com/satori/go.uuid:go_default_library",
  23. "//vendor/github.com/shopspring/decimal:go_default_library",
  24. "//vendor/github.com/siddontang/go-mysql/client:go_default_library",
  25. "//vendor/github.com/siddontang/go-mysql/mysql:go_default_library",
  26. "//vendor/github.com/siddontang/go/hack:go_default_library",
  27. "//vendor/github.com/sirupsen/logrus:go_default_library",
  28. ],
  29. )
  30. filegroup(
  31. name = "package-srcs",
  32. srcs = glob(["**"]),
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:private"],
  35. )
  36. filegroup(
  37. name = "all-srcs",
  38. srcs = [":package-srcs"],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )