BUILD 2.9 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. "api_test.go",
  11. "biz_test.go",
  12. "dao_test.go",
  13. "fav_test.go",
  14. "history_test.go",
  15. "memcache_test.go",
  16. "music_test.go",
  17. "netsafe_test.go",
  18. "porder_test.go",
  19. "rpc_test.go",
  20. "staff_test.go",
  21. "viewpoint_test.go",
  22. ],
  23. embed = [":go_default_library"],
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/interface/main/creative/conf:go_default_library",
  27. "//app/interface/main/creative/model/archive:go_default_library",
  28. "//library/cache/memcache:go_default_library",
  29. "//library/cache/redis:go_default_library",
  30. "//library/database/sql:go_default_library",
  31. "//library/ecode:go_default_library",
  32. "//vendor/github.com/bouk/monkey:go_default_library",
  33. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  34. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  35. ],
  36. )
  37. go_library(
  38. name = "go_default_library",
  39. srcs = [
  40. "api.go",
  41. "biz.go",
  42. "dao.cache.go",
  43. "dao.go",
  44. "fav.go",
  45. "history.go",
  46. "mc.cache.go",
  47. "memcache.go",
  48. "music.go",
  49. "netsafe.go",
  50. "porder.go",
  51. "rpc.go",
  52. "staff.go",
  53. "viewpoint.go",
  54. ],
  55. importpath = "go-common/app/interface/main/creative/dao/archive",
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. deps = [
  59. "//app/interface/main/creative/conf:go_default_library",
  60. "//app/interface/main/creative/dao/tool:go_default_library",
  61. "//app/interface/main/creative/model/archive:go_default_library",
  62. "//app/interface/main/creative/model/music:go_default_library",
  63. "//app/service/main/archive/api:go_default_library",
  64. "//app/service/main/archive/api/gorpc:go_default_library",
  65. "//app/service/main/archive/model/archive:go_default_library",
  66. "//library/cache/memcache:go_default_library",
  67. "//library/cache/redis:go_default_library",
  68. "//library/database/sql:go_default_library",
  69. "//library/ecode:go_default_library",
  70. "//library/log:go_default_library",
  71. "//library/net/http/blademaster:go_default_library",
  72. "//library/net/metadata:go_default_library",
  73. "//library/stat/prom:go_default_library",
  74. "//library/sync/pipeline/fanout:go_default_library",
  75. "//library/xstr:go_default_library",
  76. "//vendor/golang.org/x/sync/singleflight: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. )