BUILD 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. "authority_test.go",
  12. "banner_test.go",
  13. "blacklist_test.go",
  14. "block_test.go",
  15. "cheat_test.go",
  16. "credit_test.go",
  17. "dao_test.go",
  18. "expense_info_test.go",
  19. "notice_test.go",
  20. "offlineactivity_test.go",
  21. "special_award_test.go",
  22. "tag_test.go",
  23. "trade_test.go",
  24. "up_tag_income_test.go",
  25. "up_test.go",
  26. "upload_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/admin/main/growup/conf:go_default_library",
  33. "//app/admin/main/growup/dao/shell:go_default_library",
  34. "//app/admin/main/growup/model:go_default_library",
  35. "//app/admin/main/growup/model/offlineactivity:go_default_library",
  36. "//library/time:go_default_library",
  37. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  38. ],
  39. )
  40. go_library(
  41. name = "go_default_library",
  42. srcs = [
  43. "activity.go",
  44. "authority.go",
  45. "banner.go",
  46. "blacklist.go",
  47. "block.go",
  48. "cheat.go",
  49. "credit.go",
  50. "dao.go",
  51. "expense_info.go",
  52. "notice.go",
  53. "offlineactivity.go",
  54. "special_award.go",
  55. "tag.go",
  56. "trade.go",
  57. "up.go",
  58. "up_tag_income.go",
  59. "upload.go",
  60. ],
  61. importpath = "go-common/app/admin/main/growup/dao",
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. deps = [
  65. "//app/admin/main/growup/conf:go_default_library",
  66. "//app/admin/main/growup/dao/shell:go_default_library",
  67. "//app/admin/main/growup/model:go_default_library",
  68. "//app/admin/main/growup/model/offlineactivity:go_default_library",
  69. "//app/admin/main/up/util:go_default_library",
  70. "//library/database/orm:go_default_library",
  71. "//library/database/sql:go_default_library",
  72. "//library/ecode:go_default_library",
  73. "//library/log:go_default_library",
  74. "//library/net/http/blademaster:go_default_library",
  75. "//library/net/trace:go_default_library",
  76. "//library/time:go_default_library",
  77. "//library/xstr:go_default_library",
  78. "//vendor/github.com/jinzhu/gorm:go_default_library",
  79. ],
  80. )
  81. filegroup(
  82. name = "package-srcs",
  83. srcs = glob(["**"]),
  84. tags = ["automanaged"],
  85. visibility = ["//visibility:private"],
  86. )
  87. filegroup(
  88. name = "all-srcs",
  89. srcs = [
  90. ":package-srcs",
  91. "//app/admin/main/growup/dao/income:all-srcs",
  92. "//app/admin/main/growup/dao/message:all-srcs",
  93. "//app/admin/main/growup/dao/resource:all-srcs",
  94. "//app/admin/main/growup/dao/shell:all-srcs",
  95. ],
  96. tags = ["automanaged"],
  97. visibility = ["//visibility:public"],
  98. )