forked from cilium/proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWORKSPACE
More file actions
73 lines (54 loc) · 2.08 KB
/
Copy pathWORKSPACE
File metadata and controls
73 lines (54 loc) · 2.08 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
workspace(name = "cilium")
#
# We grep for the following line to generate SOURCE_VERSION file for non-git
# distribution builds. This line must start with the string ENVOY_SHA followed by
# an equals sign and a git SHA in double quotes.
#
# No other line in this file may have ENVOY_SHA followed by an equals sign!
#
ENVOY_PROJECT = "envoyproxy"
ENVOY_REPO = "envoy"
ENVOY_SHA = "46bf743b97d0d3f01ff437b2f10cc0bd9cdfe6e4"
ENVOY_SHA256 = "99b099b55547951fdb7f9a344fe5a4a972503782de985dfc2d3128813269f851"
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
local_repository(
name = "envoy_build_config",
path = "envoy_build_config",
)
http_archive(
name = "envoy",
patch_tool = "git",
patch_args = ["apply"],
patches = [
"@//patches:test-enable-half-close.patch",
"@//patches:test-double-server-create-timeout.patch",
"@//patches:cross-aarch64.patch",
"@//patches:envoy-unused-variables.patch",
"@//patches:0001-bazel-Assume-default-compiler-is-gcc.patch",
"@//patches:0001-bazel-Update-toolchains-to-3.7.2.patch",
],
sha256 = ENVOY_SHA256,
strip_prefix = ENVOY_REPO + "-" + ENVOY_SHA,
url = "https://github.com/" + ENVOY_PROJECT + "/" + ENVOY_REPO + "/archive/" + ENVOY_SHA + ".tar.gz",
)
#
# Bazel does not do transitive dependencies, so we must basically
# include all of Envoy's WORKSPACE file below, with the following
# changes:
# - Skip the 'workspace(name = "envoy")' line as we already defined
# the workspace above.
# - loads of "//..." need to be renamed as "@envoy//..."
#
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:repositories_extra.bzl", "envoy_dependencies_extra")
envoy_dependencies_extra()
load("@envoy//bazel:dependency_imports.bzl", "envoy_dependency_imports")
envoy_dependency_imports()
register_toolchains(
"//bazel/toolchains:gcc_aarch64_cross_toolchain",
)