Skip to content

Commit 0475fe3

Browse files
committed
Extract dependencies into .bzl file
- Easier loading from repos depending on istio proxy - Extract third_party BUILD files into it so no need to copy around
1 parent db51059 commit 0475fe3

File tree

7 files changed

+502
-429
lines changed

7 files changed

+502
-429
lines changed

WORKSPACE

Lines changed: 12 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -15,172 +15,15 @@
1515
################################################################################
1616
#
1717

18-
# required by servicecontrol_client
19-
git_repository(
20-
name = "boringssl",
21-
commit = "12c35d69008ae6b8486e435447445240509f7662", # 2016-10-24
22-
remote = "https://boringssl.googlesource.com/boringssl",
23-
)
24-
25-
bind(
26-
name = "boringssl_crypto",
27-
actual = "@boringssl//:crypto",
28-
)
29-
30-
# Required by gRPC.
31-
bind(
32-
name = "libssl",
33-
actual = "@boringssl//:ssl",
34-
)
35-
36-
new_git_repository(
37-
name = "zlib_git",
38-
build_file = "third_party/BUILD.zlib",
39-
commit = "50893291621658f355bc5b4d450a8d06a563053d", # v1.2.8
40-
remote = "https://github.com/madler/zlib.git",
41-
)
42-
43-
bind(
44-
name = "zlib",
45-
actual = "@zlib_git//:zlib"
46-
)
47-
48-
new_git_repository(
49-
name = "nanopb_git",
50-
build_file = "third_party/BUILD.nanopb",
51-
commit = "f8ac463766281625ad710900479130c7fcb4d63b",
52-
remote = "https://github.com/nanopb/nanopb.git",
53-
)
54-
55-
bind(
56-
name = "nanopb",
57-
actual = "@nanopb_git//:nanopb",
58-
)
59-
60-
git_repository(
61-
name = "grpc_git",
62-
commit = "d28417c856366df704200f544e72d31056931bce",
63-
remote = "https://github.com/grpc/grpc.git",
64-
init_submodules = True,
65-
)
66-
67-
bind(
68-
name = "gpr",
69-
actual = "@grpc_git//:gpr",
70-
)
71-
72-
bind(
73-
name = "grpc",
74-
actual = "@grpc_git//:grpc",
75-
)
76-
77-
bind(
78-
name = "grpc_cpp_plugin",
79-
actual = "@grpc_git//:grpc_cpp_plugin",
80-
)
81-
82-
bind(
83-
name = "grpc++",
84-
actual = "@grpc_git//:grpc++",
85-
)
86-
87-
bind(
88-
name = "grpc_lib",
89-
actual = "@grpc_git//:grpc++_reflection",
90-
)
91-
92-
git_repository(
93-
name = "protobuf_git",
94-
commit = "a428e42072765993ff674fda72863c9f1aa2d268", # v3.1.0
95-
remote = "https://github.com/google/protobuf.git",
96-
)
97-
98-
bind(
99-
name = "protoc",
100-
actual = "@protobuf_git//:protoc",
101-
)
102-
103-
bind(
104-
name = "protobuf",
105-
actual = "@protobuf_git//:protobuf",
106-
)
107-
108-
bind(
109-
name = "cc_wkt_protos",
110-
actual = "@protobuf_git//:cc_wkt_protos",
111-
)
112-
113-
bind(
114-
name = "cc_wkt_protos_genproto",
115-
actual = "@protobuf_git//:cc_wkt_protos_genproto",
116-
)
117-
118-
bind(
119-
name = "protobuf_compiler",
120-
actual = "@protobuf_git//:protoc_lib",
121-
)
122-
123-
bind(
124-
name = "protobuf_clib",
125-
actual = "@protobuf_git//:protobuf_lite",
126-
)
127-
128-
new_git_repository(
129-
name = "googletest_git",
130-
build_file = "third_party/BUILD.googletest",
131-
commit = "d225acc90bc3a8c420a9bcd1f033033c1ccd7fe0",
132-
remote = "https://github.com/google/googletest.git",
133-
)
134-
135-
bind(
136-
name = "googletest",
137-
actual = "@googletest_git//:googletest",
138-
)
139-
140-
bind(
141-
name = "googletest_main",
142-
actual = "@googletest_git//:googletest_main",
143-
)
144-
145-
bind(
146-
name = "googletest_prod",
147-
actual = "@googletest_git//:googletest_prod",
148-
)
149-
150-
new_git_repository(
151-
name = "googleapis_git",
152-
commit = "db1d4547dc56a798915e0eb2c795585385922165",
153-
remote = "https://github.com/googleapis/googleapis.git",
154-
build_file = "third_party/BUILD.googleapis",
155-
)
156-
157-
bind(
158-
name = "servicecontrol",
159-
actual = "@googleapis_git//:servicecontrol",
160-
)
161-
162-
bind(
163-
name = "servicecontrol_genproto",
164-
actual = "@googleapis_git//:servicecontrol_genproto",
165-
)
166-
167-
bind(
168-
name = "service_config",
169-
actual = "@googleapis_git//:service_config",
170-
)
171-
172-
bind(
173-
name = "cloud_trace",
174-
actual = "@googleapis_git//:cloud_trace",
175-
)
176-
177-
git_repository(
178-
name = "servicecontrol_client_git",
179-
commit = "d739d755365c6a13d0b4164506fd593f53932f5d",
180-
remote = "https://github.com/cloudendpoints/service-control-client-cxx.git",
181-
)
182-
183-
bind(
184-
name = "servicecontrol_client",
185-
actual = "@servicecontrol_client_git//:service_control_client_lib",
186-
)
18+
load("//contrib/endpoints:repositories.bzl",
19+
"protobuf_repositories",
20+
"grpc_repositories",
21+
"boringssl_repositories",
22+
"servicecontrol_client_repositories",
23+
"googletest_repositories")
24+
25+
boringssl_repositories()
26+
protobuf_repositories()
27+
grpc_repositories()
28+
servicecontrol_client_repositories()
29+
googletest_repositories()

contrib/endpoints/BUILD

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2016 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
#
17+
# This file is intended to be empty for repositories.bzl

0 commit comments

Comments
 (0)