0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/deps/openssl/config/openssl-cl.gypi.tmpl
Daniel Bevenius 66da32c045 deps,test,src,doc,tools: update to OpenSSL 3.0
This pull request updates the OpenSSL version that is statically
linked with Node.js from OpenSSl 1.1.1 to quictls OpenSSL 3.0.0+quic.

This pull request will replace the OpenSSL version that is currently
in the deps directory and when performing a normal build
OpenSSL 3.0+quic will be statically linked to the Node.js executable.
We will still be able to dynamically link to OpenSSL 1.1.1 and we have
a CI job which dynamically links to OpenSSL 1.1.1 which is run for
every pull request to make sure that we maintain backward compatibility.

PR-URL: https://github.com/nodejs/node/pull/38512
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2021-10-11 06:28:08 +02:00

50 lines
1.3 KiB
Cheetah

{
'variables': {
'openssl_defines_%%-$arch-%%': [
%%- foreach $define (@{$config{defines}}) {
$OUT .= " '$define',\n";
}
foreach $define (@lib_cppflags) {
$OUT .= " '$define',\n";
}
foreach $define (@{$target{defines}}) {
$OUT .= " '$define',\n";
}
foreach $define (@{lib_defines}) {
$OUT .= " '$define',\n";
}
foreach $define (@{$config{lib_defines}}) {
$OUT .= " '$define',\n";
} -%% ],
'openssl_cflags_%%-$arch-%%': [
%%- foreach $cflag (@cflags) {
$OUT .= " '$cflag',\n";
} -%% ],
'openssl_ex_libs_%%-$arch-%%': [
'%%-$target{ex_libs}-%%',
],
'openssl_cli_srcs_%%-$arch-%%': [
%%- foreach $src (@apps_openssl_srcs) {
if ($src eq 'apps/progs.c') {
$OUT .= " './config/archs/$arch/$asm/$src',\n";
} else {
unless ($src eq "apps/openssl.rc") {
$OUT .= " 'openssl/$src',\n";
}
}
}
foreach $src (@libapps_srcs) {
$OUT .= " 'openssl/$src',\n";
} -%% ],
},
'defines': ['<@(openssl_defines_%%-$arch-%%)'],
'include_dirs': [
'./include',
],
%%- if (!$is_win) {
$OUT = " 'cflags' : ['<@(openssl_cflags_$arch)'],
'libraries': ['<@(openssl_ex_libs_$arch)'],";
} -%%
'sources': ['<@(openssl_cli_srcs_%%-$arch-%%)'],
}