BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "draw.go",
  12. "freetype.go",
  13. "gaussian.go",
  14. "imgutil.go",
  15. ],
  16. importpath = "go-common/app/interface/main/creative/dao/drawimg",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/interface/main/creative/conf:go_default_library",
  21. "//library/log:go_default_library",
  22. "//vendor/github.com/golang/freetype/raster:go_default_library",
  23. "//vendor/github.com/golang/freetype/truetype:go_default_library",
  24. "//vendor/golang.org/x/image/font:go_default_library",
  25. "//vendor/golang.org/x/image/math/fixed:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_test(
  41. name = "go_default_test",
  42. srcs = [
  43. "dao_test.go",
  44. "draw_test.go",
  45. "freetype_test.go",
  46. "imgutil_test.go",
  47. ],
  48. embed = [":go_default_library"],
  49. rundir = ".",
  50. tags = ["automanaged"],
  51. deps = [
  52. "//app/interface/main/creative/conf:go_default_library",
  53. "//vendor/github.com/bouk/monkey:go_default_library",
  54. "//vendor/github.com/golang/freetype/raster:go_default_library",
  55. "//vendor/github.com/golang/freetype/truetype:go_default_library",
  56. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  57. "//vendor/golang.org/x/image/font:go_default_library",
  58. "//vendor/golang.org/x/image/math/fixed:go_default_library",
  59. ],
  60. )