boringssl_build_gn.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Jeremy Apthorp <[email protected]>
  3. Date: Thu, 20 Sep 2018 17:48:05 -0700
  4. Subject: boringssl BUILD.gn
  5. Build BoringSSL with some extra functions that nodejs needs.
  6. diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
  7. index 250ed854247a6f2f17690ffb95524eb57c72598b..6399d955196fb2d79f18dfcf7cbb2dbd5bd0bcae 100644
  8. --- a/third_party/boringssl/BUILD.gn
  9. +++ b/third_party/boringssl/BUILD.gn
  10. @@ -45,6 +45,19 @@ config("no_asm_config") {
  11. all_sources = crypto_sources + ssl_sources
  12. all_headers = crypto_headers + ssl_headers
  13. +if (is_electron_build) {
  14. + # Needed to build a nodejs-compatible boringssl.
  15. + all_sources += [
  16. + "src/decrepit/evp/evp_do_all.c",
  17. + "src/decrepit/xts/xts.c",
  18. + ]
  19. +
  20. + all_sources += [
  21. + "src/decrepit/ripemd/internal.h",
  22. + "src/decrepit/ripemd/ripemd.c",
  23. + "src/decrepit/cfb/cfb.c",
  24. + ]
  25. +}
  26. # Windows' assembly is built with NASM. The other platforms use the platform
  27. # assembler. Exclude Windows ARM64 because NASM targets x86 and x64 only.