BUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. "dao_test.go",
  11. "discount_gift_test.go",
  12. "discount_plan_test.go",
  13. "gift_online_test.go",
  14. "gift_plan_test.go",
  15. "redis_test.go",
  16. "ugift_day_test.go",
  17. "ugift_week_test.go",
  18. "user_gift_test.go",
  19. ],
  20. embed = [":go_default_library"],
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/service/live/gift/api/grpc/v1:go_default_library",
  24. "//app/service/live/gift/conf:go_default_library",
  25. "//app/service/live/gift/model:go_default_library",
  26. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  27. ],
  28. )
  29. go_library(
  30. name = "go_default_library",
  31. srcs = [
  32. "dao.go",
  33. "discount_gift.go",
  34. "discount_plan.go",
  35. "gift_online.go",
  36. "gift_plan.go",
  37. "redis.go",
  38. "ugift_day.go",
  39. "ugift_week.go",
  40. "user_gift.go",
  41. ],
  42. importpath = "go-common/app/service/live/gift/dao",
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. deps = [
  46. "//app/service/live/activity/api/liverpc:go_default_library",
  47. "//app/service/live/fans_medal/api/liverpc:go_default_library",
  48. "//app/service/live/gift/api/grpc/v1:go_default_library",
  49. "//app/service/live/gift/conf:go_default_library",
  50. "//app/service/live/gift/model:go_default_library",
  51. "//app/service/live/live_user/api/liverpc:go_default_library",
  52. "//app/service/live/room/api/liverpc:go_default_library",
  53. "//app/service/live/user/api/liverpc:go_default_library",
  54. "//app/service/live/xuser/api/grpc/v1:go_default_library",
  55. "//library/cache/memcache:go_default_library",
  56. "//library/cache/redis:go_default_library",
  57. "//library/database/sql:go_default_library",
  58. "//library/log:go_default_library",
  59. "//library/net/rpc/liverpc:go_default_library",
  60. "//library/xstr:go_default_library",
  61. ],
  62. )
  63. filegroup(
  64. name = "package-srcs",
  65. srcs = glob(["**"]),
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:private"],
  68. )
  69. filegroup(
  70. name = "all-srcs",
  71. srcs = [":package-srcs"],
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:public"],
  74. )