summaryrefslogtreecommitdiff
path: root/node.gypi
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-03-09 13:50:08 -0800
committerJames M Snell <jasnell@gmail.com>2021-03-19 08:18:37 -0700
commit43f599b534e60933e86db4d9ad87dfd8750a0f06 (patch)
tree2925ba0ca7dfc39f120d44d163bacda9de115688 /node.gypi
parent2b710c1413735ad8b497c5d6faf399d0f8c2c577 (diff)
downloadnode-new-43f599b534e60933e86db4d9ad87dfd8750a0f06.tar.gz
deps: add ngtcp2 and nghttp3
Reintroduces the ngtcp2 and nghttp3 dependencies, building those by default if the vendored-in openssl (with QUIC support) is used or the shared openssl defines `OPENSSL_INFO_QUIC`. Upates the version metadata to reflect whether ngtcp2 and nghttp3 are present. ngtcp2 as of https://github.com/ngtcp2/ngtcp2/commit/2381f7f7b633602d83ad3de997153df730b1f649 nghttp3 as of https://github.com/ngtcp2/nghttp3/commit/66ad30f0a8f5164f87fbc83b37628f8f6d9ba608 Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/37682 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'node.gypi')
-rw-r--r--node.gypi20
1 files changed, 12 insertions, 8 deletions
diff --git a/node.gypi b/node.gypi
index f9dba2d4bd..dde4f8332d 100644
--- a/node.gypi
+++ b/node.gypi
@@ -326,6 +326,9 @@
# For tests
'./deps/openssl/openssl.gyp:openssl-cli',
],
+ # Set 1.0.0 as the API compability level to avoid the
+ # deprecation warnings when using OpenSSL 3.0.
+ 'defines': ['OPENSSL_API_COMPAT=0x10000000L'],
'conditions': [
# -force_load or --whole-archive are not applicable for
# the static library
@@ -360,16 +363,17 @@
}],
],
}],
- ],
- }, {
- # Set 1.0.0 as the API compability level to avoid the
- # deprecation warnings when using OpenSSL 3.0.
- 'defines': ['OPENSSL_API_COMPAT=0x10000000L'],
- }]]
-
+ ]
+ }],
+ [ 'openssl_quic=="true" and node_shared_ngtcp2=="false"', {
+ 'dependencies': [ './deps/ngtcp2/ngtcp2.gyp:ngtcp2' ]
+ }],
+ [ 'openssl_quic=="true" and node_shared_nghttp3=="false"', {
+ 'dependencies': [ './deps/ngtcp2/ngtcp2.gyp:nghttp3' ]
+ }]
+ ]
}, {
'defines': [ 'HAVE_OPENSSL=0' ]
}],
-
],
}