BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. "cmd.go",
  11. "creative.go",
  12. "mcncache.go",
  13. "reply.go",
  14. "req.go",
  15. "tables.go",
  16. "upcheck.go",
  17. ],
  18. importpath = "go-common/app/interface/main/mcn/model/mcnmodel",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/admin/main/mcn/model:go_default_library",
  23. "//app/interface/main/mcn/model:go_default_library",
  24. "//app/interface/main/mcn/model/datamodel:go_default_library",
  25. "//app/interface/main/mcn/tool/validate:go_default_library",
  26. "//app/service/main/archive/api:go_default_library",
  27. "//library/time:go_default_library",
  28. ],
  29. )
  30. filegroup(
  31. name = "package-srcs",
  32. srcs = glob(["**"]),
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:private"],
  35. )
  36. filegroup(
  37. name = "all-srcs",
  38. srcs = [":package-srcs"],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )
  42. go_test(
  43. name = "go_default_test",
  44. srcs = ["reply_test.go"],
  45. embed = [":go_default_library"],
  46. tags = ["automanaged"],
  47. deps = [
  48. "//app/admin/main/mcn/model:go_default_library",
  49. "//app/interface/main/mcn/model:go_default_library",
  50. ],
  51. )