-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathWORKSPACE.bazel
More file actions
111 lines (95 loc) · 3.63 KB
/
WORKSPACE.bazel
File metadata and controls
111 lines (95 loc) · 3.63 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
##
# googleapis for the common protos
#
_googleapis_commit = "b08c55646b3fe4983c1952ddea87d1120ecd8ce7"
_googleapis_sha256 = "60576252d005826ab81e87a98e3a31360e11470afd0fe92c48983e75ede26b2e"
http_archive(
name = "com_google_googleapis",
sha256 = _googleapis_sha256,
strip_prefix = "googleapis-%s" % _googleapis_commit,
urls = ["https://github.com/googleapis/googleapis/archive/%s.zip" % _googleapis_commit],
)
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
switched_rules_by_language(
name = "com_google_googleapis_imports",
gapic = True,
)
##
# grpc
#
# Note: Although this is referencing grpc v1.x, the generated C# is for use
# with nuget packages Grpc.Core and Grpc.Core.Api v2.x
#
_grpc_version = "1.43.2"
_grpc_sha256 = "d6827949d9a32d205c802a3338196f161c0c058416a0248bd50a13a8e124b53c"
http_archive(
name = "com_github_grpc_grpc",
strip_prefix = "grpc-%s" % _grpc_version,
sha256 = _grpc_sha256,
urls = ["https://github.com/grpc/grpc/archive/v%s.zip" % _grpc_version],
)
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()
##
# rules_proto
#
_rules_proto_commit = "fcad4680fee127dbd8344e6a961a28eef5820ef4"
_rules_proto_sha256 = "36476f17a78a4c495b9a9e70bd92d182e6e78db476d90c74bac1f5f19f0d6d04"
http_archive(
name = "rules_proto",
sha256 = _rules_proto_sha256,
strip_prefix = "rules_proto-%s" % _rules_proto_commit,
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/%s.tar.gz" % _rules_proto_commit,
"https://github.com/bazelbuild/rules_proto/archive/%s.tar.gz" % _rules_proto_commit,
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()
##
# gapic_generator_csharp
# (either from github or local)
#
# use the following to get a consistent external version from github
# pointing to a release
#
# _gapic_generator_csharp_version = "1.3.7"
#
# http_archive(
# name = "gapic_generator_csharp",
# strip_prefix = "gapic-generator-csharp-%s" % _gapic_generator_csharp_version,
# urls = ["https://github.com/googleapis/gapic-generator-csharp/archive/refs/tags/v%s.tar.gz" % _gapic_generator_csharp_version],
# )
# or pointing to a specific commit
#
# _gapic_generator_csharp_commit = "1738e9ff65c2360683409fcd1ac9d1bbfde3cc34"
# http_archive(
# name = "gapic_generator_csharp",
# urls = ["https://github.com/googleapis/gapic-generator-csharp/archive/%s.zip" % _gapic_generator_csharp_commit],
# strip_prefix = "gapic-generator-csharp-%s" % _gapic_generator_csharp_commit,
# )
# Use the following to use the bazel rules defined locally, rather than fetched from github.
#
local_repository(
name = "gapic_generator_csharp",
path = "../",
)
load("@gapic_generator_csharp//:repositories.bzl", "gapic_generator_csharp_repositories")
gapic_generator_csharp_repositories()