BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. "api.go",
  11. "dao.go",
  12. "watermark.go",
  13. ],
  14. importpath = "go-common/app/interface/main/creative/dao/watermark",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/interface/main/creative/conf:go_default_library",
  19. "//app/interface/main/creative/dao/tool:go_default_library",
  20. "//app/interface/main/creative/model/watermark: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. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )
  39. go_test(
  40. name = "go_default_test",
  41. srcs = [
  42. "api_test.go",
  43. "dao_test.go",
  44. "watermark_test.go",
  45. ],
  46. embed = [":go_default_library"],
  47. rundir = ".",
  48. tags = ["automanaged"],
  49. deps = [
  50. "//app/interface/main/creative/conf:go_default_library",
  51. "//app/interface/main/creative/model/watermark:go_default_library",
  52. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  53. ],
  54. )