|
1 | 1 | load("@io_bazel_rules_dotnet//dotnet:csharp.bzl", "nuget_package", "new_nuget_package", "csharp_library", "dll_import") |
2 | 2 | load("//protobuf:rules.bzl", "proto_compile", "proto_repositories", "proto_language_deps") |
3 | 3 |
|
4 | | - |
5 | 4 | def csharp_proto_repositories(): |
6 | 5 | proto_repositories() |
7 | 6 |
|
@@ -44,36 +43,6 @@ dll_import( |
44 | 43 | srcs = glob(["Grpc.Core.1.0.0/lib/net45/**/*.dll"]), |
45 | 44 | visibility = ["//visibility:public"], |
46 | 45 | ) |
47 | | -""" |
48 | | - ) |
49 | | - |
50 | | - new_nuget_package( |
51 | | - name = "nuget_grpc_tools", |
52 | | - package = "Grpc.Tools", |
53 | | - version = "1.0.0", |
54 | | - build_file_content = |
55 | | -""" |
56 | | -load("@io_bazel_rules_dotnet//dotnet:csharp.bzl", "dll_import", "csharp_binary") |
57 | | -genrule( |
58 | | - name = "protoc-gen-grpc-csharp_bin", |
59 | | - srcs = [":grpc_csharp_plugin"], |
60 | | - outs = ["protoc-gen-grpc-csharp"], |
61 | | - cmd = "cp $(location :grpc_csharp_plugin) $$(pwd)/$@", |
62 | | - executable = True, |
63 | | - visibility = ["//visibility:public"], |
64 | | -) |
65 | | -filegroup( |
66 | | - name = "grpc_csharp_plugin", |
67 | | - srcs = select({ |
68 | | - ":darwin": ["Grpc.Tools.1.0.0/tools/macosx_x64/grpc_csharp_plugin"], |
69 | | - "//conditions:default": ["Grpc.Tools.1.0.0/tools/linux_x64/grpc_csharp_plugin"], |
70 | | - }), |
71 | | -) |
72 | | -config_setting( |
73 | | - name = "darwin", |
74 | | - values = {"cpu": "darwin"}, |
75 | | - visibility = ["//visibility:private"], |
76 | | -) |
77 | 46 | """ |
78 | 47 | ) |
79 | 48 |
|
|
0 commit comments