refactor: [gn] compile node with boringssl (#13285)

This commit is contained in:
Jeremy Apthorp 2018-06-19 08:39:43 -07:00 committed by Charles Kerr
parent 137aaf2429
commit c598272891
2 changed files with 14 additions and 1 deletions

View file

@ -2,9 +2,12 @@ action("configure_node") {
script = "//third_party/electron_node/configure" script = "//third_party/electron_node/configure"
args = [ args = [
"--enable-static", "--enable-static",
"--openssl-no-asm",
"--release-urlbase=https://atom.io/download/electron", "--release-urlbase=https://atom.io/download/electron",
"--shared", "--shared",
"--shared-openssl",
"--shared-openssl-includes=" + rebase_path("//third_party/boringssl/src/include"),
"--shared-openssl-libname=boringssl",
"--shared-openssl-libpath=" + rebase_path(root_out_dir),
"--without-npm", "--without-npm",
"--without-bundled-v8", "--without-bundled-v8",
"--without-dtrace", "--without-dtrace",
@ -57,6 +60,7 @@ action("gyp_node") {
action("build_node") { action("build_node") {
deps = [ deps = [
"//third_party/boringssl",
"//third_party/icu", "//third_party/icu",
"//v8", "//v8",
"//v8:v8_libbase", "//v8:v8_libbase",

View file

@ -26,6 +26,15 @@
'../../../../../../libv8_libplatform.dylib', '../../../../../../libv8_libplatform.dylib',
'../../../../../../libicuuc.dylib', '../../../../../../libicuuc.dylib',
], ],
'defines': [
# These will no longer be necessary once
# https://github.com/google/boringssl/commit/a02ed04d527e1b57b4efaa0b4f9bdbc1ed5975b2
# is in the past for Electron
'EVP_CIPH_CCM_MODE=0',
'EVP_CIPH_WRAP_MODE=0',
'EVP_CIPHER_CTX_FLAG_WRAP_ALLOW=0',
'EVP_CIPHER_CTX_set_flags(...)',
],
}], }],
], ],
}, },