mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
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 of2381f7f7b6nghttp3 as of66ad30f0a8Signed-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>
21 lines
375 B
Python
21 lines
375 B
Python
from __future__ import print_function
|
|
import os
|
|
import re
|
|
|
|
def get_has_quic(include_path):
|
|
if include_path:
|
|
openssl_crypto_h = os.path.join(
|
|
include_path,
|
|
'openssl',
|
|
'crypto.h')
|
|
|
|
f = open(openssl_crypto_h)
|
|
|
|
regex = '^#\s*define OPENSSL_INFO_QUIC'
|
|
|
|
for line in f:
|
|
if (re.match(regex, line)):
|
|
return True
|
|
|
|
return False
|