[BUILD.gn] Export explicit static targets
Drivers on Fuchsia are expected to statically link all dependencies, so
the default targets (which for Fuchsia targets are shared libraries)
aren't what we want for drivers that need to link boringssl.
So, we define additional libcrypto and libssl targets to cover the build
matrix, and carefully make sure the output name of the default library
type is preserved to avoid changing behavior for existing usage of the
:boringssl target (since otherwise that seems to trip up Rust targets on
host with `non_rust_deps` at link time).
Then, we define an additional `:boringssl-static` target which can be
used to reliably pull in the statically-linked library for use in
Fuchsia-Auto-Submit: Drew Fisher <email@example.com>
Commit-Queue: Auto-Submit <firstname.lastname@example.org>
Reviewed-by: Aaron Green <email@example.com>
1 file changed