BUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "account_test.go",
  11. "dao_test.go",
  12. "hbase_test.go",
  13. "mysql_test.go",
  14. "redis_test.go",
  15. "vip_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/job/main/figure/conf:go_default_library",
  22. "//app/job/main/figure/model:go_default_library",
  23. "//library/log:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "account.go",
  31. "blocked.go",
  32. "danmaku.go",
  33. "dao.go",
  34. "hbase.go",
  35. "mysql.go",
  36. "redis.go",
  37. "vip.go",
  38. ],
  39. importpath = "go-common/app/job/main/figure/dao",
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. deps = [
  43. "//app/job/main/figure/conf:go_default_library",
  44. "//app/job/main/figure/model:go_default_library",
  45. "//library/cache/redis:go_default_library",
  46. "//library/database/hbase.v2:go_default_library",
  47. "//library/database/sql:go_default_library",
  48. "//library/log:go_default_library",
  49. "//vendor/github.com/pkg/errors:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )