Skip to content

Commit 5344a38

Browse files
committed
bssl-compat now uses bazel-fetched BoringSSL rather than a vendored copy
Signed-off-by: Ted Poole <[email protected]>
1 parent 1e32043 commit 5344a38

File tree

8,143 files changed

+282
-2400630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,143 files changed

+282
-2400630
lines changed

bazel/external/openssl.BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ configure_make(
2525
visibility = ["//visibility:public"],
2626
)
2727

28+
filegroup(
29+
name = "include",
30+
srcs = [":openssl"],
31+
output_group = "include",
32+
visibility = ["//visibility:public"],
33+
)
34+
2835
filegroup(
2936
name = "libssl",
3037
srcs = [":openssl"],

bazel/repositories.bzl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def envoy_dependencies(skip_targets = []):
136136
_foreign_cc_dependencies()
137137

138138
_openssl()
139+
_boringssl()
139140

140141
# Binding to an alias pointing to the bssl-compat layer
141142
native.bind(
@@ -261,7 +262,16 @@ def envoy_dependencies(skip_targets = []):
261262
)
262263

263264
def _boringssl():
264-
external_http_archive(name = "boringssl")
265+
external_http_archive(
266+
name = "boringssl",
267+
patch_cmds = [
268+
# Enable bssl-compat to copy out & use parts of the source tree
269+
# that don't get exported from the bazel BUILD file by default.
270+
"""echo 'exports_files(glob(["crypto/**/*"]))' >> BUILD.bazel""",
271+
"""echo 'exports_files(glob(["ssl/**/*"]))' >> BUILD.bazel""",
272+
"""echo 'exports_files(glob(["include/**/*"]))' >> BUILD.bazel""",
273+
],
274+
)
265275

266276
def _boringssl_fips():
267277
external_http_archive(

0 commit comments

Comments
 (0)