0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/deps/ngtcp2/ngtcp2.gyp
James M Snell 86ca72a4f0 deps: update ngtcp2 and nghttp3
PR-URL: https://github.com/nodejs/node/pull/51291
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2023-12-29 07:33:29 -08:00

197 lines
5.1 KiB
Python

{
'target_defaults': {
'defines': [ '_U_=' ]
},
'variables': {
'ngtcp2_sources': [
'ngtcp2/lib/ngtcp2_acktr.c',
'ngtcp2/lib/ngtcp2_addr.c',
'ngtcp2/lib/ngtcp2_balloc.c',
'ngtcp2/lib/ngtcp2_bbr.c',
'ngtcp2/lib/ngtcp2_buf.c',
'ngtcp2/lib/ngtcp2_cc.c',
'ngtcp2/lib/ngtcp2_cid.c',
'ngtcp2/lib/ngtcp2_conn.c',
'ngtcp2/lib/ngtcp2_conv.c',
'ngtcp2/lib/ngtcp2_conversion.c',
'ngtcp2/lib/ngtcp2_crypto.c',
'ngtcp2/lib/ngtcp2_err.c',
'ngtcp2/lib/ngtcp2_frame_chain.c',
'ngtcp2/lib/ngtcp2_gaptr.c',
'ngtcp2/lib/ngtcp2_idtr.c',
'ngtcp2/lib/ngtcp2_ksl.c',
'ngtcp2/lib/ngtcp2_log.c',
'ngtcp2/lib/ngtcp2_map.c',
'ngtcp2/lib/ngtcp2_mem.c',
'ngtcp2/lib/ngtcp2_objalloc.c',
'ngtcp2/lib/ngtcp2_opl.c',
'ngtcp2/lib/ngtcp2_path.c',
'ngtcp2/lib/ngtcp2_pkt.c',
'ngtcp2/lib/ngtcp2_pmtud.c',
'ngtcp2/lib/ngtcp2_ppe.c',
'ngtcp2/lib/ngtcp2_pq.c',
'ngtcp2/lib/ngtcp2_pv.c',
'ngtcp2/lib/ngtcp2_qlog.c',
'ngtcp2/lib/ngtcp2_range.c',
'ngtcp2/lib/ngtcp2_ringbuf.c',
'ngtcp2/lib/ngtcp2_rob.c',
'ngtcp2/lib/ngtcp2_rst.c',
'ngtcp2/lib/ngtcp2_rtb.c',
'ngtcp2/lib/ngtcp2_str.c',
'ngtcp2/lib/ngtcp2_strm.c',
'ngtcp2/lib/ngtcp2_unreachable.c',
'ngtcp2/lib/ngtcp2_vec.c',
'ngtcp2/lib/ngtcp2_version.c',
'ngtcp2/lib/ngtcp2_window_filter.c',
'ngtcp2/crypto/shared.c'
],
'ngtcp2_sources_quictls': [
'ngtcp2/crypto/quictls/quictls.c'
],
'ngtcp2_sources_boringssl': [
'ngtcp2/crypto/boringssl/boringssl.c'
],
'nghttp3_sources': [
'nghttp3/lib/nghttp3_balloc.c',
'nghttp3/lib/nghttp3_buf.c',
'nghttp3/lib/nghttp3_conn.c',
'nghttp3/lib/nghttp3_conv.c',
'nghttp3/lib/nghttp3_debug.c',
'nghttp3/lib/nghttp3_err.c',
'nghttp3/lib/nghttp3_frame.c',
'nghttp3/lib/nghttp3_gaptr.c',
'nghttp3/lib/nghttp3_http.c',
'nghttp3/lib/nghttp3_idtr.c',
'nghttp3/lib/nghttp3_ksl.c',
'nghttp3/lib/nghttp3_map.c',
'nghttp3/lib/nghttp3_mem.c',
'nghttp3/lib/nghttp3_objalloc.c',
'nghttp3/lib/nghttp3_opl.c',
'nghttp3/lib/nghttp3_pq.c',
'nghttp3/lib/nghttp3_qpack.c',
'nghttp3/lib/nghttp3_qpack_huffman.c',
'nghttp3/lib/nghttp3_qpack_huffman_data.c',
'nghttp3/lib/nghttp3_range.c',
'nghttp3/lib/nghttp3_rcbuf.c',
'nghttp3/lib/nghttp3_ringbuf.c',
'nghttp3/lib/nghttp3_str.c',
'nghttp3/lib/nghttp3_stream.c',
'nghttp3/lib/nghttp3_tnode.c',
'nghttp3/lib/nghttp3_unreachable.c',
'nghttp3/lib/nghttp3_vec.c',
'nghttp3/lib/nghttp3_version.c',
# sfparse is also used by nghttp2 and is included by nghttp2.gyp
# 'nghttp3/lib/sfparse.c'
]
},
'targets': [
{
'target_name': 'ngtcp2',
'type': 'static_library',
'include_dirs': [
'',
'ngtcp2/lib/includes/',
'ngtcp2/crypto/includes/',
'ngtcp2/lib/',
'ngtcp2/crypto/',
],
'defines': [
'BUILDING_NGTCP2',
'NGTCP2_STATICLIB',
],
'conditions': [
['node_shared_openssl=="false"', {
'dependencies': [
'../openssl/openssl.gyp:openssl'
]
}],
['OS!="win"', {
'defines': ['HAVE_UNISTD_H']
}],
['OS=="win"', {
'defines': [
'WIN32',
'_WINDOWS',
'HAVE_CONFIG_H',
],
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': '1'
},
},
}],
['OS=="linux" or OS=="android"', {
'defines': [
'HAVE_ARPA_INET_H',
'HAVE_NETINET_IN_H',
],
}],
],
'direct_dependent_settings': {
'defines': [
'NGTCP2_STATICLIB',
],
'include_dirs': [
'',
'ngtcp2/lib/includes',
'ngtcp2/crypto/includes',
'ngtcp2/crypto',
]
},
'sources': [
'<@(ngtcp2_sources)',
'<@(ngtcp2_sources_quictls)',
]
},
{
'target_name': 'nghttp3',
'type': 'static_library',
'include_dirs': [
'nghttp3/lib/includes/',
'nghttp3/lib/'
],
'defines': [
'BUILDING_NGHTTP3',
'NGHTTP3_STATICLIB',
],
'dependencies': [
'ngtcp2'
],
'conditions': [
['OS=="win"', {
'defines': [
'WIN32',
'_WINDOWS',
'HAVE_CONFIG_H',
],
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': '1'
},
},
}],
['OS!="win"', {
'defines': ['HAVE_UNISTD_H']
}],
['OS=="linux" or OS=="android"', {
'defines': [
'HAVE_ARPA_INET_H',
'HAVE_NETINET_IN_H',
],
}],
],
'direct_dependent_settings': {
'defines': [
'NGHTTP3_STATICLIB'
],
'include_dirs': [
'nghttp3/lib/includes'
]
},
'sources': [
'<@(nghttp3_sources)'
]
}
]
}