BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. "service_test.go",
  11. "watermark_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/interface/main/creative/conf:go_default_library",
  18. "//app/interface/main/creative/model/watermark:go_default_library",
  19. "//app/interface/main/creative/service:go_default_library",
  20. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  21. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "service.go",
  28. "watermark.go",
  29. ],
  30. importpath = "go-common/app/interface/main/creative/service/watermark",
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. deps = [
  34. "//app/interface/main/creative/conf:go_default_library",
  35. "//app/interface/main/creative/dao/account:go_default_library",
  36. "//app/interface/main/creative/dao/bfs:go_default_library",
  37. "//app/interface/main/creative/dao/drawimg:go_default_library",
  38. "//app/interface/main/creative/dao/monitor:go_default_library",
  39. "//app/interface/main/creative/dao/watermark:go_default_library",
  40. "//app/interface/main/creative/model/newcomer:go_default_library",
  41. "//app/interface/main/creative/model/watermark:go_default_library",
  42. "//app/interface/main/creative/service:go_default_library",
  43. "//app/service/main/account/model:go_default_library",
  44. "//library/ecode:go_default_library",
  45. "//library/log:go_default_library",
  46. "//library/net/metadata:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. ],
  49. )
  50. filegroup(
  51. name = "package-srcs",
  52. srcs = glob(["**"]),
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:private"],
  55. )
  56. filegroup(
  57. name = "all-srcs",
  58. srcs = [":package-srcs"],
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:public"],
  61. )