-
Notifications
You must be signed in to change notification settings - Fork 45
bssl-compat on bazel 1.35 #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tedjpoole
wants to merge
1
commit into
envoyproxy:release/v1.35
Choose a base branch
from
tedjpoole:bssl-compat-bazel-1.35
base: release/v1.35
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| diff --git a/BUILD.bazel b/BUILD.bazel | ||
| index b7dc359..cd87639 100644 | ||
| --- a/BUILD.bazel | ||
| +++ b/BUILD.bazel | ||
| @@ -66,6 +66,20 @@ license( | ||
|
|
||
| exports_files(["LICENSE"]) | ||
|
|
||
| +# Export additional files for bssl-compat layer | ||
| +exports_files(glob(["include/**/*"])) | ||
| +exports_files(glob(["crypto/**/*"])) | ||
| +exports_files(glob(["ssl/**/*"])) | ||
| + | ||
| +filegroup( | ||
| + name = "test_data", | ||
| + srcs = glob([ | ||
| + "crypto/x509/test/*.pem", | ||
| + "crypto/pkcs8/test/*.p12", | ||
| + ]), | ||
| + visibility = ["//visibility:public"], | ||
| +) | ||
| + | ||
| bssl_cc_library( | ||
| name = "crypto", | ||
| srcs = bcm_sources + crypto_sources, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| diff --git a/include/openssl/target.h b/include/openssl/target.h | ||
| index 8d4763d..79f52ba 100644 | ||
| --- a/include/openssl/target.h | ||
| +++ b/include/openssl/target.h | ||
| @@ -54,6 +54,10 @@ | ||
| #define OPENSSL_32_BIT | ||
| #elif defined(__myriad2__) | ||
| #define OPENSSL_32_BIT | ||
| +#elif defined(__s390__) || defined(__s390x__) || defined(__zarch__) | ||
| +#define OPENSSL_64_BIT | ||
| +#elif defined(__ppc64le__) || defined(__ARCH_PPC64LE__) || defined(_ARCH_PPC64) | ||
| +#define OPENSSL_64_BIT | ||
| #else | ||
| // The list above enumerates the platforms that BoringSSL supports. For these | ||
| // platforms we keep a reasonable bar of not breaking them: automated test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
||
| # libclang-cpp from llvm, used by the bssl-compat prefixer tool. | ||
| cc_library( | ||
| name = "libclang-cpp", | ||
| srcs = glob(["lib/libclang-cpp.*"]), | ||
| hdrs = glob(["include/**/*"]), | ||
| includes = ["include"], | ||
| linkopts = ["-lstdc++"], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| # The clang compiler built-in headers (stdef.h, limits.h etc) | ||
| filegroup( | ||
| name = "clang-headers", | ||
| srcs = glob(["lib/clang/*/include/**/*.h"]), | ||
| visibility = ["//visibility:public"], | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.