forked from pubref/rules_protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
159 lines (112 loc) · 4.32 KB
/
WORKSPACE
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
workspace(name = "org_pubref_rules_protobuf")
# ================================================================
# Go support requires rules_go
# ================================================================
git_repository(
name = "io_bazel_rules_go",
commit = "4c73b9cb84c1f8e32e7df3c26e237439699d5d8c",
remote = "https://github.com/bazelbuild/rules_go.git",
)
load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
go_repositories()
# ================================================================
# closure js_proto_library support requires rules_closure
# ================================================================
git_repository(
name = "io_bazel_rules_closure",
commit = "a6b65d5c5c9db8968fb8e03115d5e4f6976de8f7",
remote = "https://github.com/bazelbuild/rules_closure.git",
)
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
closure_repositories()
# ================================================================
# csharp_proto_library support requires rules_dotnet (forked)
# ================================================================
git_repository(
name = "io_bazel_rules_dotnet",
commit = "ebc7c1cb61d45bd57042c60b6bfabdfff4979466",
remote = "https://github.com/bazelbuild/rules_dotnet.git",
)
load("@io_bazel_rules_dotnet//dotnet:csharp.bzl", "csharp_repositories")
csharp_repositories(use_local_mono = False)
# ================================================================
# node_proto_library support requires rules_node
# ================================================================
git_repository(
name = "org_pubref_rules_node",
commit = "85b720f3d4299b0a1b9c7771c023352e9182045f", # Oct 10, 2016
remote = "https://github.com/pubref/rules_node.git",
)
load("@org_pubref_rules_node//node:rules.bzl", "node_repositories")
node_repositories()
# ================================================================
# Specific Languages Support
# ================================================================
load("//protobuf:rules.bzl", "proto_repositories")
proto_repositories()
load("//cpp:rules.bzl", "cpp_proto_repositories")
cpp_proto_repositories()
load("//csharp:rules.bzl", "csharp_proto_repositories")
csharp_proto_repositories()
load("//java:rules.bzl", "java_proto_repositories", "nano_proto_repositories")
java_proto_repositories()
nano_proto_repositories()
load("//go:rules.bzl", "go_proto_repositories")
go_proto_repositories()
load("//gogo:rules.bzl", "gogo_proto_repositories")
gogo_proto_repositories()
load("//grpc_gateway:rules.bzl", "grpc_gateway_proto_repositories")
grpc_gateway_proto_repositories()
load("//node:rules.bzl", "node_proto_repositories")
node_proto_repositories()
load("//objc:rules.bzl", "objc_proto_repositories")
objc_proto_repositories()
load("//python:rules.bzl", "py_proto_repositories")
py_proto_repositories()
load("//ruby:rules.bzl", "ruby_proto_repositories")
ruby_proto_repositories()
# ================================================================
# This is for testing
# ================================================================
local_repository(
name = "org_pubref_rules_protobuf",
path = ".",
)
GOOGLEAPIS_BUILD_FILE = """
package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_go//go:def.bzl", "go_prefix")
go_prefix("github.com/googleapis/googleapis")
load("@org_pubref_rules_protobuf//cpp:rules.bzl", "cc_proto_library")
load("@org_pubref_rules_protobuf//java:rules.bzl", "java_proto_library")
load("@org_pubref_rules_protobuf//go:rules.bzl", "go_proto_library")
cc_proto_library(
name = "cc_label_proto",
protos = [
"google/api/label.proto",
],
verbose = 0,
)
java_proto_library(
name = "java_label_proto",
protos = [
"google/api/label.proto",
],
# Neither seem to be necessary, for either 3 langs
#imports = ["../../external/com_github_google_protobuf/src", "."],
#inputs = ["@com_github_google_protobuf//:well_known_protos"],
verbose = 0,
)
go_proto_library(
name = "go_label_proto",
protos = [
"google/api/label.proto",
],
verbose = 0,
)
"""
new_git_repository(
name = "com_github_googleapis_googleapis",
build_file_content = GOOGLEAPIS_BUILD_FILE,
commit = "13ac2436c5e3d568bd0e938f6ed58b77a48aba15",
remote = "https://github.com/googleapis/googleapis.git",
)