BUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "dao.go",
  10. "mc.go",
  11. "mysql.go",
  12. "notify.go",
  13. ],
  14. importpath = "go-common/app/job/main/passport-game-cloud/dao",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/job/main/passport-game-cloud/conf:go_default_library",
  19. "//app/job/main/passport-game-cloud/model:go_default_library",
  20. "//library/cache/memcache:go_default_library",
  21. "//library/database/sql:go_default_library",
  22. "//library/ecode:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/net/http/blademaster:go_default_library",
  25. ],
  26. )
  27. go_test(
  28. name = "go_default_test",
  29. srcs = [
  30. "dao_test.go",
  31. "mysql_test.go",
  32. "notify_test.go",
  33. ],
  34. embed = [":go_default_library"],
  35. rundir = ".",
  36. tags = ["automanaged"],
  37. deps = [
  38. "//app/job/main/passport-game-cloud/conf:go_default_library",
  39. "//app/job/main/passport-game-cloud/model:go_default_library",
  40. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  41. "//vendor/github.com/pkg/errors:go_default_library",
  42. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  43. ],
  44. )
  45. filegroup(
  46. name = "package-srcs",
  47. srcs = glob(["**"]),
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:private"],
  50. )
  51. filegroup(
  52. name = "all-srcs",
  53. srcs = [":package-srcs"],
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:public"],
  56. )