BUILD.bazel 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. proto_library(
  10. name = "example_proto",
  11. srcs = ["test.proto"],
  12. tags = ["automanaged"],
  13. visibility = ["//visibility:public"],
  14. )
  15. go_proto_library(
  16. name = "example_go_proto",
  17. compilers = ["@io_bazel_rules_go//proto:go_proto"],
  18. importpath = "go-common/library/net/http/blademaster/binding/example",
  19. proto = ":example_proto",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. embed = [":example_go_proto"],
  26. importpath = "go-common/net/http/blademaster/binding/example",
  27. visibility = ["//visibility:public"],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )