BUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//proto:def.bzl",
  7. "go_proto_library",
  8. )
  9. go_library(
  10. name = "go_default_library",
  11. srcs = ["exp.go"],
  12. embed = [":model_go_proto"],
  13. importpath = "go-common/app/service/live/userexp/model",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  18. "@com_github_golang_protobuf//proto:go_default_library",
  19. ],
  20. )
  21. proto_library(
  22. name = "model_proto",
  23. srcs = ["exp.proto"],
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  27. )
  28. go_proto_library(
  29. name = "model_go_proto",
  30. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  31. importpath = "go-common/app/service/live/userexp/model",
  32. proto = ":model_proto",
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  36. )
  37. filegroup(
  38. name = "package-srcs",
  39. srcs = glob(["**"]),
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:private"],
  42. )
  43. filegroup(
  44. name = "all-srcs",
  45. srcs = [":package-srcs"],
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. )