BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "activity_test.go",
  11. "dao_test.go",
  12. "game_test.go",
  13. "mysql_test.go",
  14. "redis_test.go",
  15. "reply_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/interface/openplatform/article/model:go_default_library",
  22. "//app/job/openplatform/article/conf:go_default_library",
  23. "//library/cache/redis: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. "activity.go",
  31. "art_redis.go",
  32. "dao.cache.go",
  33. "dao.go",
  34. "dynamic.go",
  35. "flow.go",
  36. "game.go",
  37. "media.go",
  38. "mysql.go",
  39. "purge.go",
  40. "recommend.go",
  41. "redis.go",
  42. "reply.go",
  43. ],
  44. importpath = "go-common/app/job/openplatform/article/dao",
  45. tags = ["automanaged"],
  46. deps = [
  47. "//app/interface/openplatform/article/model:go_default_library",
  48. "//app/job/openplatform/article/conf:go_default_library",
  49. "//app/job/openplatform/article/model:go_default_library",
  50. "//library/cache:go_default_library",
  51. "//library/cache/redis:go_default_library",
  52. "//library/database/sql:go_default_library",
  53. "//library/ecode:go_default_library",
  54. "//library/log:go_default_library",
  55. "//library/net/http/blademaster:go_default_library",
  56. "//library/net/metadata:go_default_library",
  57. "//library/queue/databus:go_default_library",
  58. "//library/stat/prom:go_default_library",
  59. "//library/xstr:go_default_library",
  60. ],
  61. )
  62. filegroup(
  63. name = "package-srcs",
  64. srcs = glob(["**"]),
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:private"],
  67. )
  68. filegroup(
  69. name = "all-srcs",
  70. srcs = [":package-srcs"],
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. )