Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

BoringSSL build system #2

Merged
merged 4 commits into from
Sep 28, 2019
Merged

BoringSSL build system #2

merged 4 commits into from
Sep 28, 2019

Conversation

ilammy
Copy link
Owner

@ilammy ilammy commented Sep 28, 2019

I have used the build.rs file from Google's Mundane project, slightly simplified it and tweaked for our usage (prefixes). It's still mostly code copyrighted by Google so I keep the original notices.

I don't really like the dependency on goblin since it pulls in quite a few transitive dependencies which take a while to compile but that's better than bindgen or cc so I might tolerate it. However, I guess we could opt for calling some ELF/Mach-O utils directly to read the object files (nm, anyone?) At least on UNIX systems which are very likely to have them. Since we require quite a few tool already (CMake, C/C++ toolchain, Go, Make/Ninja) I guess it will be okay to add elfutils to the batch and avoid compiling various unrelated dependencies.

I have used the build.rs file from Google's Mundane project [1]
slightly simplified it and tweaked for our usage (prefixes).
It's still mostly code copyrighted by Google so I keep the
original notices.

I don't really like the dependency on "goblin" since it pulls in
quite a few transitive dependencies which take a while to compile
but that's better than "bindgen" or "cc" so I might tolerate it.
However, I guess we could opt for calling some ELF/Mach-O utils
directly to read the object files ("nm", anyone?) At least on
UNIX systems which are very likely to have them. Since we require
quite a few tool already (CMake, C/C++ toolchain, Go, Make/Ninja)
I guess it will be okay to add elfutils to the batch and avoid
compiling various unrelated dependencies.

[1]: https://github.com/google/mundane/tree/master/build
@ilammy ilammy added the A-BoringSSL ⚙️ Area: BoringSSL cryptographic backend label Sep 28, 2019
@ilammy ilammy self-assigned this Sep 28, 2019
@ilammy ilammy merged commit 53887d1 into master Sep 28, 2019
@ilammy ilammy deleted the boringssl branch September 28, 2019 11:31
@ilammy ilammy mentioned this pull request Sep 28, 2019
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-BoringSSL ⚙️ Area: BoringSSL cryptographic backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant