Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Commit fe88f31

Browse files
jasnelladuh95
authored andcommitted
deps: add ngtcp2 test binaries
The goal here is to add the ngtcp2 client and server samples so that we can use them in CI to test our QUIC implementation. PR-URL: #59946 Backport-PR-URL: #64675 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent e68946d commit fe88f31

214 files changed

Lines changed: 133807 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/nghttp2/nghttp2.gypβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}

β€Ždeps/ngtcp2/ngtcp2.gypβ€Ž

Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
Β (0)