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