|
87 | 87 | 'nghttp3/lib/nghttp3_unreachable.c',
|
88 | 88 | 'nghttp3/lib/nghttp3_vec.c',
|
89 | 89 | 'nghttp3/lib/nghttp3_version.c',
|
| 90 | + ], |
| 91 | + 'ngtcp2_test_server_sources': [ |
| 92 | + 'ngtcp2/examples/tls_server_session_ossl.cc', |
| 93 | + 'ngtcp2/examples/tls_server_context_ossl.cc', |
| 94 | + 'ngtcp2/examples/tls_session_base_ossl.cc', |
| 95 | + 'ngtcp2/examples/util_openssl.cc', |
| 96 | + 'ngtcp2/examples/http.cc', |
| 97 | + 'ngtcp2/examples/server_base.cc', |
| 98 | + 'ngtcp2/examples/shared.cc', |
| 99 | + 'ngtcp2/examples/server.cc', |
| 100 | + 'ngtcp2/examples/util.cc', |
| 101 | + 'ngtcp2/examples/debug.cc', |
| 102 | + 'ngtcp2/examples/siphash.cc', |
| 103 | + 'ngtcp2/third-party/urlparse/urlparse.c', |
| 104 | + 'ngtcp2/third-party/libev/ev.c', |
| 105 | + ], |
| 106 | + 'ngtcp2_test_client_sources': [ |
| 107 | + 'ngtcp2/examples/tls_client_session_ossl.cc', |
| 108 | + 'ngtcp2/examples/tls_client_context_ossl.cc', |
| 109 | + 'ngtcp2/examples/tls_session_base_ossl.cc', |
| 110 | + 'ngtcp2/examples/util_openssl.cc', |
| 111 | + 'ngtcp2/examples/http.cc', |
| 112 | + 'ngtcp2/examples/client_base.cc', |
| 113 | + 'ngtcp2/examples/shared.cc', |
| 114 | + 'ngtcp2/examples/client.cc', |
| 115 | + 'ngtcp2/examples/util.cc', |
| 116 | + 'ngtcp2/examples/debug.cc', |
| 117 | + 'ngtcp2/examples/siphash.cc', |
| 118 | + 'ngtcp2/third-party/urlparse/urlparse.c', |
| 119 | + 'ngtcp2/third-party/libev/ev.c', |
90 | 120 | ]
|
91 | 121 | },
|
92 | 122 | 'targets': [
|
|
225 | 255 | 'sources': [
|
226 | 256 | '<@(nghttp3_sources)'
|
227 | 257 | ]
|
| 258 | + }, |
| 259 | + { |
| 260 | + 'target_name': 'ngtcp2_test_server', |
| 261 | + 'type': 'executable', |
| 262 | + 'cflags': [ '-Wno-everything' ], |
| 263 | + 'include_dirs': [ |
| 264 | + '', |
| 265 | + 'ngtcp2/examples/', |
| 266 | + 'ngtcp2/lib/includes/', |
| 267 | + 'ngtcp2/crypto/includes/', |
| 268 | + 'ngtcp2/third-party/urlparse/', |
| 269 | + 'ngtcp2/third-party/libev/', |
| 270 | + '../../nghttp2/lib', |
| 271 | + ], |
| 272 | + 'dependencies': [ |
| 273 | + 'ngtcp2', |
| 274 | + 'nghttp3', |
| 275 | + '../openssl/openssl.gyp:openssl', |
| 276 | + '../nghttp2/nghttp2.gyp:sfparse', |
| 277 | + ], |
| 278 | + 'defines': [ |
| 279 | + 'HAVE_CONFIG_H', |
| 280 | + 'WITH_EXAMPLE_OSSL', |
| 281 | + 'EV_STANDALONE=1', |
| 282 | + ], |
| 283 | + 'conditions': [ |
| 284 | + ['OS=="win"', { |
| 285 | + 'defines': [ |
| 286 | + 'WIN32', |
| 287 | + '_WINDOWS', |
| 288 | + ], |
| 289 | + 'msvs_settings': { |
| 290 | + 'VCCLCompilerTool': { |
| 291 | + 'CompileAs': '1' |
| 292 | + }, |
| 293 | + }, |
| 294 | + }], |
| 295 | + ['OS!="win"', { |
| 296 | + 'defines': [ |
| 297 | + 'HAVE_UNISTD_H', |
| 298 | + 'HAVE_ARPA_INET_H', |
| 299 | + 'HAVE_NETINET_IN_H', |
| 300 | + 'HAVE_NETINET_IP_H', |
| 301 | + ], |
| 302 | + }], |
| 303 | + ], |
| 304 | + 'sources': [ |
| 305 | + '<@(ngtcp2_test_server_sources)' |
| 306 | + ] |
| 307 | + }, |
| 308 | + { |
| 309 | + 'target_name': 'ngtcp2_test_client', |
| 310 | + 'type': 'executable', |
| 311 | + 'cflags': [ '-Wno-everything' ], |
| 312 | + 'include_dirs': [ |
| 313 | + '', |
| 314 | + 'ngtcp2/examples/', |
| 315 | + 'ngtcp2/lib/includes/', |
| 316 | + 'ngtcp2/crypto/includes/', |
| 317 | + 'ngtcp2/third-party/urlparse/', |
| 318 | + 'ngtcp2/third-party/libev/', |
| 319 | + '../../nghttp2/lib', |
| 320 | + ], |
| 321 | + 'dependencies': [ |
| 322 | + 'ngtcp2', |
| 323 | + 'nghttp3', |
| 324 | + '../openssl/openssl.gyp:openssl', |
| 325 | + '../nghttp2/nghttp2.gyp:sfparse', |
| 326 | + ], |
| 327 | + 'defines': [ |
| 328 | + 'HAVE_CONFIG_H', |
| 329 | + 'WITH_EXAMPLE_OSSL', |
| 330 | + 'EV_STANDALONE=1', |
| 331 | + ], |
| 332 | + 'conditions': [ |
| 333 | + ['OS=="win"', { |
| 334 | + 'defines': [ |
| 335 | + 'WIN32', |
| 336 | + '_WINDOWS', |
| 337 | + ], |
| 338 | + 'msvs_settings': { |
| 339 | + 'VCCLCompilerTool': { |
| 340 | + 'CompileAs': '1' |
| 341 | + }, |
| 342 | + }, |
| 343 | + }], |
| 344 | + ['OS!="win"', { |
| 345 | + 'defines': [ |
| 346 | + 'HAVE_UNISTD_H', |
| 347 | + 'HAVE_ARPA_INET_H', |
| 348 | + 'HAVE_NETINET_IN_H', |
| 349 | + 'HAVE_NETINET_IP_H', |
| 350 | + ], |
| 351 | + }], |
| 352 | + ], |
| 353 | + 'sources': [ |
| 354 | + '<@(ngtcp2_test_client_sources)' |
| 355 | + ] |
228 | 356 | }
|
229 | 357 | ]
|
230 | 358 | }
|
0 commit comments