BUILD 979 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_binary",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [
  16. ":package-srcs",
  17. "//app/tool/gorpc/goparser:all-srcs",
  18. "//app/tool/gorpc/input:all-srcs",
  19. "//app/tool/gorpc/model:all-srcs",
  20. ],
  21. tags = ["automanaged"],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = ["main.go"],
  26. importpath = "go-common/app/tool/gorpc",
  27. tags = ["automanaged"],
  28. deps = [
  29. "//app/tool/gorpc/goparser:go_default_library",
  30. "//app/tool/gorpc/input:go_default_library",
  31. "//app/tool/gorpc/model:go_default_library",
  32. "//vendor/golang.org/x/tools/imports:go_default_library",
  33. ],
  34. )
  35. go_binary(
  36. name = "gorpc",
  37. embed = [":go_default_library"],
  38. )