BUILD 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_binary",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = ["main.go"],
  9. data = ["passport-game-local-job.toml"],
  10. importpath = "go-common/app/job/main/passport-game-local/cmd",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:private"],
  13. deps = [
  14. "//app/job/main/passport-game-local/conf:go_default_library",
  15. "//app/job/main/passport-game-local/http:go_default_library",
  16. "//app/job/main/passport-game-local/service:go_default_library",
  17. "//library/log:go_default_library",
  18. "//library/net/trace:go_default_library",
  19. ],
  20. )
  21. go_binary(
  22. name = "cmd",
  23. embed = [":go_default_library"],
  24. visibility = ["//visibility:public"],
  25. )
  26. filegroup(
  27. name = "package-srcs",
  28. srcs = glob(["**"]),
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:private"],
  31. )
  32. filegroup(
  33. name = "all-srcs",
  34. srcs = [":package-srcs"],
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. )