-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathdeps.bzl
52 lines (46 loc) · 1.23 KB
/
deps.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
PROTOBUF_BUILD_FILE = """
load("@io_bazel_rules_dotnet//dotnet:csharp.bzl", "dll_import")
dll_import(
name = "libnet45",
srcs = [
"Google.Protobuf.3.4.0/lib/net451/Google.Protobuf.dll",
],
visibility = ["//visibility:public"],
)
"""
GRPC_BUILD_FILE = """
load("@io_bazel_rules_dotnet//dotnet:csharp.bzl", "dll_import")
dll_import(
name = "runtime_osx",
srcs = glob(["Grpc.Core.1.6.0/runtimes/osx/**/*.dll"]),
visibility = ["//visibility:public"],
)
dll_import(
name = "system_interactive_async",
srcs = glob(["System.Interactive.Async.3.4.0/lib/net45/**/*.dll"]),
visibility = ["//visibility:public"],
)
dll_import(
name = "core",
srcs = glob(["Grpc.Core.1.6.0/lib/net45/**/*.dll"]),
visibility = ["//visibility:public"],
)
"""
DEPS = {
"nuget_google_protobuf": {
"rule": "new_nuget_package",
"package": "Google.Protobuf",
"version": "3.4.0",
"build_file_content": PROTOBUF_BUILD_FILE,
},
"nuget_grpc": {
"rule": "new_nuget_package",
"package": "Grpc",
"version": "1.6.0",
"build_file_content": GRPC_BUILD_FILE,
},
"protoc_gen_grpc_csharp": {
"rule": "bind",
"actual": "@com_google_grpc//:grpc_csharp_plugin",
},
}