BUILD 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. "bfs_test.go",
  11. "dao_test.go",
  12. "mask_test.go",
  13. "mc_special_test.go",
  14. "mc_subtitle_test.go",
  15. "memcache_seg_test.go",
  16. "memcache_test.go",
  17. "mysql_dm_special_test.go",
  18. "mysql_test.go",
  19. "rank_list_test.go",
  20. "redis_mask_test.go",
  21. "redis_rct_test.go",
  22. "redis_seg_test.go",
  23. "redis_task_test.go",
  24. "redis_test.go",
  25. "task_test.go",
  26. "transfer_test.go",
  27. "videoup_test.go",
  28. ],
  29. embed = [":go_default_library"],
  30. rundir = ".",
  31. tags = ["automanaged"],
  32. deps = [
  33. "//app/job/main/dm2/conf:go_default_library",
  34. "//app/job/main/dm2/model:go_default_library",
  35. "//library/log:go_default_library",
  36. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  37. ],
  38. )
  39. go_library(
  40. name = "go_default_library",
  41. srcs = [
  42. "bfs.go",
  43. "bnj.go",
  44. "dao.go",
  45. "mask.go",
  46. "mc_special.go",
  47. "mc_subtitle.go",
  48. "memcache.go",
  49. "memcache_seg.go",
  50. "mysql.go",
  51. "mysql_dm_special.go",
  52. "rank_list.go",
  53. "redis.go",
  54. "redis_mask.go",
  55. "redis_rct.go",
  56. "redis_seg.go",
  57. "redis_task.go",
  58. "task.go",
  59. "transfer.go",
  60. "videoup.go",
  61. ],
  62. importpath = "go-common/app/job/main/dm2/dao",
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. deps = [
  66. "//app/job/main/dm2/conf:go_default_library",
  67. "//app/job/main/dm2/model:go_default_library",
  68. "//library/cache/memcache:go_default_library",
  69. "//library/cache/redis:go_default_library",
  70. "//library/database/bfs:go_default_library",
  71. "//library/database/sql:go_default_library",
  72. "//library/log:go_default_library",
  73. "//library/net/http/blademaster:go_default_library",
  74. "//library/net/metadata:go_default_library",
  75. "//library/sync/errgroup: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 = [":package-srcs"],
  88. tags = ["automanaged"],
  89. visibility = ["//visibility:public"],
  90. )