BUILD.bazel 950 B

12345678910111213141516171819202122232425262728293031323334
  1. # Protobuf C# runtime
  2. #
  3. # See also code generation logic under /src/google/protobuf/compiler/csharp.
  4. load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
  5. pkg_files(
  6. name = "dist_files",
  7. srcs = glob([
  8. "keys/*",
  9. "protos/*",
  10. "src/**/*.cs*", # .cs and .csproj
  11. ]) + [
  12. ".editorconfig",
  13. ".gitignore",
  14. "BUILD.bazel",
  15. "CHANGES.txt",
  16. "Google.Protobuf.Tools.nuspec",
  17. "Google.Protobuf.Tools.targets",
  18. "NuGet.Config",
  19. "README.md",
  20. "build_packages.bat",
  21. "build_tools.sh",
  22. "buildall.bat",
  23. "buildall.sh",
  24. "generate_protos.sh",
  25. "install_dotnet_sdk.ps1",
  26. "src/Google.Protobuf.Benchmarks/wrapper_benchmark_messages.proto",
  27. "src/Google.Protobuf.Test/testprotos.pb",
  28. "src/Google.Protobuf.sln",
  29. ],
  30. strip_prefix = strip_prefix.from_root(""),
  31. visibility = ["//pkg:__pkg__"],
  32. )