forked from cloudendpoints/esp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
182 lines (148 loc) · 4.95 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Copyright (C) Extensible Service Proxy Authors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
################################################################################
#
# A Bazel (http://bazel.io) workspace for the Google Cloud Endpoints runtime.
ESP_TOOL = "096d4596c3530489b3f598a5aaa1beda78d9245b"
git_repository(
name = "nginx",
commit = "18e870fcf52981cd0804eef269f2bb08182f0e3f", # v1.13.4
remote = "https://nginx.googlesource.com/nginx",
)
load("@nginx//:build.bzl", "nginx_repositories")
nginx_repositories(
bind = True,
nginx = "@nginx//",
)
# Needs to come after nginx
git_repository(
name = "iap_jwt_verify_nginx",
commit = "d3b47d8017ae808a891b5ce6e22315d0b2652baf",
remote = "https://github.com/GoogleCloudPlatform/appengine-sidecars-docker",
)
load("@iap_jwt_verify_nginx//:iap_jwt_verify_nginx.bzl", "iap_jwt_verify_nginx_repositories")
iap_jwt_verify_nginx_repositories(True)
# Required by gRPC.
bind(
name = "libssl",
actual = "@boringssl//:ssl",
)
load(
"//:repositories.bzl",
"servicecontrol_client_repositories",
"protobuf_repositories",
"googletest_repositories",
"grpc_repositories",
"transcoding_repositories",
)
bind(
name = "api_manager",
actual = "//include:api_manager",
)
bind(
name = "api_manager_status_proto",
actual = "//src/api_manager:status_proto",
)
bind(
name = "api_manager_status_proto_genproto",
actual = "//src/api_manager:status_proto_genproto",
)
bind(
name = "api_manager_auth_lib",
actual = "//src/api_manager/auth/lib",
)
bind(
name = "api_manager_utils",
actual = "//src/api_manager/utils",
)
bind(
name = "grpc_transcoding",
actual = "//src/grpc/transcoding:transcoding_endpoints",
)
servicecontrol_client_repositories()
protobuf_repositories()
googletest_repositories()
grpc_repositories()
transcoding_repositories()
# Workaround for Bazel > 0.4.0 since it needs newer protobuf.bzl from:
# https://github.com/google/protobuf/pull/2246
# Do not use this git_repository for anything else than protobuf.bzl
new_git_repository(
name = "protobuf_bzl",
# Injecting an empty BUILD file to prevent using any build target
build_file_content = "",
commit = "05090726144b6e632c50f47720ff51049bfcbef6",
remote = "https://github.com/google/protobuf.git",
)
git_repository(
name = "gflags_git",
commit = "fe57e5af4db74ab298523f06d2c43aa895ba9f98", # 2016-07-22
remote = "https://github.com/gflags/gflags",
)
bind(
name = "gflags",
actual = "@gflags_git//:gflags",
)
git_repository(
name = "tools",
commit = ESP_TOOL,
remote = "https://github.com/cloudendpoints/endpoints-tools",
)
#
# Python rules
#
git_repository(
name = "io_bazel_rules_pex",
commit = "d4af3ca0a015e8b2d2a81a4df1df51bb0fa0bba0",
remote = "https://github.com/benley/bazel_rules_pex.git",
)
load("@io_bazel_rules_pex//pex:pex_rules.bzl", "pex_repositories")
pex_repositories()
#
# Perl rules
#
git_repository(
name = "io_bazel_rules_perl",
commit = "f6211c2db1e54d0a30bc3c3a718f2b5d45f02a22",
remote = "https://github.com/bazelbuild/rules_perl.git",
)
#
# Go rules
#
git_repository(
name = "io_bazel_rules_go",
commit = "2d9f328a9723baf2d037ba9db28d9d0e30683938", # Apr 6, 2017 (buildifier fix)
remote = "https://github.com/bazelbuild/rules_go.git",
)
load("@io_bazel_rules_go//go:def.bzl", "go_repositories", "go_repository", "new_go_repository")
go_repositories()
new_git_repository(
name = "github_com_golang_protobuf",
build_file = "third_party/BUILD.golang_protobuf",
commit = "8616e8ee5e20a1704615e6c8d7afcdac06087a67",
remote = "https://github.com/golang/protobuf.git",
)
load("//test/grpc:repositories.bzl", "grpc_go_repositories")
grpc_go_repositories()