BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = ["log.go"],
  12. embed = [":model_go_proto"],
  13. importpath = "go-common/app/service/main/secure/model",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//library/time:go_default_library",
  18. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  19. "@com_github_golang_protobuf//proto:go_default_library",
  20. ],
  21. )
  22. filegroup(
  23. name = "package-srcs",
  24. srcs = glob(["**"]),
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:private"],
  27. )
  28. filegroup(
  29. name = "all-srcs",
  30. srcs = [":package-srcs"],
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. )
  34. proto_library(
  35. name = "model_proto",
  36. srcs = ["locs.proto"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  40. )
  41. go_proto_library(
  42. name = "model_go_proto",
  43. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  44. importpath = "go-common/app/service/main/secure/model",
  45. proto = ":model_proto",
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  49. )