| load("//csharp:library.bzl", "csharp_grpc_library") |
| load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_binary", "core_library") |
| |
| csharp_grpc_library( |
| name = "routeguide", |
| deps = ["//example/proto/routeguide:proto_library"], |
| verbose = 3, |
| ) |
| |
| core_library( |
| name = "util", |
| srcs = [ |
| "RouteGuideUtil.cs", |
| ], |
| deps = [ |
| ":routeguide", |
| "@newtonsoft.json//:core", |
| ], |
| ) |
| |
| core_binary( |
| name = "class1", |
| srcs = [ |
| "Class1.cs", |
| ], |
| deps = [ |
| ":routeguide", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.io.dll", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.reflection.dll", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.runtime.dll", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.runtime.extensions.dll", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.console.dll", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.core.dll", |
| "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.dll", |
| ], |
| ) |
| |
| core_binary( |
| name = "client", |
| srcs = [ |
| "Client.cs", |
| #":routeguide_pb", |
| ], |
| deps = [ |
| ":util", |
| ":routeguide", |
| "@google.protobuf//:core", |
| "@system.interactive.async//:core", |
| "@grpc.core//:core", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.threading.tasks.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.io.dll", |
| |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.runtime.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.runtime.extensions.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.console.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.private.corelib.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.xml.linq.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.threading.tasks.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.io.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.io.filesystem.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.collections.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.security.cryptography.primitives.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.linq.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.xml.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.xml.xdocument.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.text.encoding.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.io.filesystem.primitives.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.core.dll", |
| # "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.dll", |
| |
| #"@io_bazel_rules_dotnet//dotnet/stdlib:System.Threading.Tasks.Dataflow.dll", |
| #"@io_bazel_rules_dotnet//dotnet/stdlib:System.Reactive.Windows.Threading.dll", |
| ], |
| ) |
| |
| core_binary( |
| name = "server", |
| srcs = ["server.cs"], |
| deps = [ |
| ":routeguide", |
| "@google.protobuf//:core", |
| "@system.interactive.async//:core", |
| "@grpc.core//:core", |
| ], |
| # data = ["//example/proto/routeguide:features"], |
| ) |