BUILD 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. "credit_test.go",
  12. "dao_test.go",
  13. "mask_test.go",
  14. "mc_filter_test.go",
  15. "mc_subtitle_test.go",
  16. "message_test.go",
  17. "mysql_advance_test.go",
  18. "mysql_filter_test.go",
  19. "mysql_mask_test.go",
  20. "mysql_report_test.go",
  21. "mysql_subtitle_test.go",
  22. "mysql_task_test.go",
  23. "mysql_test.go",
  24. "mysql_transfer_test.go",
  25. "search_subtitle_test.go",
  26. "search_test.go",
  27. "task_test.go",
  28. "videoup_test.go",
  29. "workflow_test.go",
  30. ],
  31. embed = [":go_default_library"],
  32. rundir = ".",
  33. tags = ["automanaged"],
  34. deps = [
  35. "//app/admin/main/dm/conf:go_default_library",
  36. "//app/admin/main/dm/model:go_default_library",
  37. "//library/log:go_default_library",
  38. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  39. ],
  40. )
  41. go_library(
  42. name = "go_default_library",
  43. srcs = [
  44. "account.go",
  45. "bfs.go",
  46. "credit.go",
  47. "dao.go",
  48. "mask.go",
  49. "mc_filter.go",
  50. "mc_subtitle.go",
  51. "message.go",
  52. "mysql.go",
  53. "mysql_advance.go",
  54. "mysql_filter.go",
  55. "mysql_mask.go",
  56. "mysql_report.go",
  57. "mysql_subtitle.go",
  58. "mysql_task.go",
  59. "mysql_transfer.go",
  60. "search.go",
  61. "search_subtitle.go",
  62. "task.go",
  63. "videoup.go",
  64. "workflow.go",
  65. ],
  66. importpath = "go-common/app/admin/main/dm/dao",
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:public"],
  69. deps = [
  70. "//app/admin/main/dm/conf:go_default_library",
  71. "//app/admin/main/dm/model:go_default_library",
  72. "//library/cache/memcache:go_default_library",
  73. "//library/database/bfs:go_default_library",
  74. "//library/database/elastic:go_default_library",
  75. "//library/database/sql:go_default_library",
  76. "//library/ecode:go_default_library",
  77. "//library/log:go_default_library",
  78. "//library/net/http/blademaster:go_default_library",
  79. "//library/net/metadata:go_default_library",
  80. "//library/queue/databus:go_default_library",
  81. "//library/sync/errgroup:go_default_library",
  82. "//library/xstr:go_default_library",
  83. ],
  84. )
  85. filegroup(
  86. name = "package-srcs",
  87. srcs = glob(["**"]),
  88. tags = ["automanaged"],
  89. visibility = ["//visibility:private"],
  90. )
  91. filegroup(
  92. name = "all-srcs",
  93. srcs = [
  94. ":package-srcs",
  95. "//app/admin/main/dm/dao/oplog:all-srcs",
  96. ],
  97. tags = ["automanaged"],
  98. visibility = ["//visibility:public"],
  99. )