This repository has been archived by the owner on May 3, 2022. It is now read-only.
forked from envoyproxy/envoy-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
63 lines (47 loc) · 1.75 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
workspace(name = "envoy_openssl")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "openssl",
build_file = "@//:openssl.BUILD",
sha256 = "23011a5cc78e53d0dc98dfa608c51e72bcd350aa57df74c5d5574ba4ffb62e74",
strip_prefix = "openssl-OpenSSL_1_1_1d",
urls = ["https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz"],
)
new_local_repository(
name = "openssl_shared",
build_file = "openssl_host_shared.BUILD",
path = "/usr/lib/x86_64-linux-gnu",
)
local_repository(
name = "envoy_build_config",
path = "envoy_build_config",
)
local_repository(
name = "envoy",
path = "envoy",
repo_mapping = {
"@boringssl": "@openssl",
},
)
load("@envoy//bazel:api_binding.bzl", "envoy_api_binding")
envoy_api_binding()
load("@envoy//bazel:api_repositories.bzl", "envoy_api_dependencies")
envoy_api_dependencies()
load("@envoy//bazel:repositories.bzl", "envoy_dependencies")
envoy_dependencies()
load("@envoy//bazel:dependency_imports.bzl", "envoy_dependency_imports")
envoy_dependency_imports()
load("@envoy//bazel:repository_locations.bzl", "REPOSITORY_LOCATIONS")
http_archive(
name = "com_github_google_jwt_verify_patched",
patch_args = ["-p1"],
patches = ["//:jwt_verify-make-compatible-with-openssl.patch"],
sha256 = REPOSITORY_LOCATIONS["com_github_google_jwt_verify"]["sha256"],
strip_prefix = REPOSITORY_LOCATIONS["com_github_google_jwt_verify"].get("strip_prefix", ""),
urls = REPOSITORY_LOCATIONS["com_github_google_jwt_verify"]["urls"],
)
# TODO: Consider not using `bind`. See https://github.com/bazelbuild/bazel/issues/1952 for details.
bind(
name = "jwt_verify_lib",
actual = "@com_github_google_jwt_verify_patched//:jwt_verify_lib",
)