BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "api.go",
  10. "cache.go",
  11. "dao.go",
  12. "mc.go",
  13. "mysql.go",
  14. ],
  15. importpath = "go-common/app/service/main/passport-game/dao",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/service/main/passport-game/conf:go_default_library",
  20. "//app/service/main/passport-game/model:go_default_library",
  21. "//library/cache/memcache:go_default_library",
  22. "//library/database/sql:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//library/log:go_default_library",
  25. "//library/net/http/blademaster:go_default_library",
  26. "//library/net/metadata:go_default_library",
  27. ],
  28. )
  29. go_test(
  30. name = "go_default_test",
  31. srcs = [
  32. "api_test.go",
  33. "cache_test.go",
  34. "dao_test.go",
  35. "mc_test.go",
  36. "mysql_test.go",
  37. ],
  38. embed = [":go_default_library"],
  39. rundir = ".",
  40. tags = ["automanaged"],
  41. deps = [
  42. "//app/service/main/passport-game/conf:go_default_library",
  43. "//app/service/main/passport-game/model:go_default_library",
  44. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  45. ],
  46. )
  47. filegroup(
  48. name = "package-srcs",
  49. srcs = glob(["**"]),
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:private"],
  52. )
  53. filegroup(
  54. name = "all-srcs",
  55. srcs = [":package-srcs"],
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. )