BUILD 1.3 KB

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