BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [
  13. "const.go",
  14. "qq.go",
  15. "sns.go",
  16. "weibo.go",
  17. ],
  18. embed = [":model_go_proto"],
  19. importpath = "go-common/app/service/main/passport-sns/model",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/service/main/passport-sns/api:go_default_library",
  24. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  25. "@com_github_golang_protobuf//proto: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. proto_library(
  41. name = "model_proto",
  42. srcs = ["sns.proto"],
  43. tags = ["automanaged"],
  44. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  45. )
  46. go_proto_library(
  47. name = "model_go_proto",
  48. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  49. importpath = "go-common/app/service/main/passport-sns/model",
  50. proto = ":model_proto",
  51. tags = ["automanaged"],
  52. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  53. )