BUILD 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. "auto_test.go",
  12. "av_breach_test.go",
  13. "bgm_white_list_test.go",
  14. "blacklist_test.go",
  15. "budget_test.go",
  16. "charge_ratio_test.go",
  17. "cheat_test.go",
  18. "dao_test.go",
  19. "data_test.go",
  20. "email_test.go",
  21. "hbase_test.go",
  22. "income_test.go",
  23. "lottery_test.go",
  24. "tag_test.go",
  25. "task_status_test.go",
  26. "up_bill_test.go",
  27. "up_category_info_test.go",
  28. "up_info_video_test.go",
  29. "up_quality_info_test.go",
  30. ],
  31. embed = [":go_default_library"],
  32. rundir = ".",
  33. tags = ["automanaged"],
  34. deps = [
  35. "//app/job/main/growup/conf:go_default_library",
  36. "//app/job/main/growup/model: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. "auto.go",
  45. "av_breach.go",
  46. "bgm_white_list.go",
  47. "blacklist.go",
  48. "budget.go",
  49. "charge_ratio.go",
  50. "cheat.go",
  51. "dao.go",
  52. "data.go",
  53. "email.go",
  54. "hbase.go",
  55. "income.go",
  56. "lottery.go",
  57. "tag.go",
  58. "task_status.go",
  59. "up_bill.go",
  60. "up_category_info.go",
  61. "up_info_video.go",
  62. "up_quality_info.go",
  63. ],
  64. importpath = "go-common/app/job/main/growup/dao",
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:public"],
  67. deps = [
  68. "//app/job/main/growup/conf:go_default_library",
  69. "//app/job/main/growup/model:go_default_library",
  70. "//library/database/hbase.v2: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/time:go_default_library",
  76. "//library/xstr:go_default_library",
  77. ],
  78. )
  79. filegroup(
  80. name = "package-srcs",
  81. srcs = glob(["**"]),
  82. tags = ["automanaged"],
  83. visibility = ["//visibility:private"],
  84. )
  85. filegroup(
  86. name = "all-srcs",
  87. srcs = [
  88. ":package-srcs",
  89. "//app/job/main/growup/dao/charge:all-srcs",
  90. "//app/job/main/growup/dao/dataplatform:all-srcs",
  91. "//app/job/main/growup/dao/email:all-srcs",
  92. "//app/job/main/growup/dao/income:all-srcs",
  93. "//app/job/main/growup/dao/tag:all-srcs",
  94. ],
  95. tags = ["automanaged"],
  96. visibility = ["//visibility:public"],
  97. )