[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

Change-Id: I4965ed8c6978f41cc2209775275155ef8a897d4e
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/boringssl/+/476857
Fuchsia-Auto-Submit: Drew Fisher <zarvox@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Reviewed-by: Aaron Green <aarongreen@google.com>
1 file changed