From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 20 Sep 2018 17:48:05 -0700 Subject: boringssl BUILD.gn Build BoringSSL with some extra functions that nodejs needs. diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn index 52e239f60fa67cf0f8c9b44edf2b1801d1f64f0e..38e5f41084ac9d58328a281197ae0d6df678047e 100644 --- a/third_party/boringssl/BUILD.gn +++ b/third_party/boringssl/BUILD.gn @@ -48,6 +48,21 @@ all_sources = bcm_internal_headers + bcm_sources + crypto_internal_headers + crypto_sources + ssl_internal_headers + ssl_sources + pki_sources all_headers = crypto_headers + ssl_headers + pki_headers + pki_internal_headers +if (is_electron_build) { + # Needed to build a nodejs-compatible boringssl. + all_sources += [ + "decrepit/evp/evp_do_all.c", + "decrepit/xts/xts.c", + ] + + all_sources += [ + "decrepit/blowfish/blowfish.c", + "decrepit/cfb/cfb.c", + "decrepit/ripemd/internal.h", + "decrepit/ripemd/ripemd.c", + ] +} + if (enable_rust) { rust_bindgen("raw_bssl_sys_bindings") { header = "src/rust/bssl-sys/wrapper.h"