BUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "dao.go",
  11. "mng_auth.go",
  12. "mng_role.go",
  13. "mng_user.go",
  14. "publish.go",
  15. ],
  16. importpath = "go-common/app/admin/main/macross/dao",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/admin/main/macross/conf:go_default_library",
  21. "//app/admin/main/macross/model/manager:go_default_library",
  22. "//app/admin/main/macross/model/publish:go_default_library",
  23. "//library/database/sql:go_default_library",
  24. "//library/log:go_default_library",
  25. ],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [
  36. ":package-srcs",
  37. "//app/admin/main/macross/dao/oss:all-srcs",
  38. ],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )
  42. go_test(
  43. name = "go_default_test",
  44. srcs = [
  45. "dao_test.go",
  46. "mng_auth_test.go",
  47. "mng_role_test.go",
  48. "mng_user_test.go",
  49. ],
  50. embed = [":go_default_library"],
  51. rundir = ".",
  52. tags = ["automanaged"],
  53. deps = [
  54. "//app/admin/main/macross/conf:go_default_library",
  55. "//library/database/sql:go_default_library",
  56. "//vendor/github.com/bouk/monkey:go_default_library",
  57. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  58. ],
  59. )