BUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "coin_test.go",
  12. "reply_test.go",
  13. "service_test.go",
  14. "spy_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. "//app/job/main/reply/model/reply:go_default_library",
  24. "//app/service/main/coin/model:go_default_library",
  25. "//app/service/main/spy/model:go_default_library",
  26. "//library/log:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "account.go",
  34. "blocked.go",
  35. "coin.go",
  36. "danmaku.go",
  37. "pay.go",
  38. "reply.go",
  39. "service.go",
  40. "spy.go",
  41. "sync.go",
  42. "vip.go",
  43. ],
  44. importpath = "go-common/app/job/main/figure/service",
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. deps = [
  48. "//app/job/main/figure/conf:go_default_library",
  49. "//app/job/main/figure/dao:go_default_library",
  50. "//app/job/main/figure/model:go_default_library",
  51. "//app/service/main/coin/model:go_default_library",
  52. "//app/service/main/spy/model:go_default_library",
  53. "//library/log:go_default_library",
  54. "//library/queue/databus:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [":package-srcs"],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )