MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bump to libuv 1.52.0

+730 -17
+1 -1
meson/ant.version
··· 1 - 0.6.2 1 + 0.6.3
+1 -7
meson/deps/meson.build
··· 37 37 llhttp = dependency('llhttp', method: 'cmake', modules: ['llhttp::llhttp_static'], required: true) 38 38 endif 39 39 40 - libuv_sub = subproject('libuv', default_options: [ 41 - 'build_tests=false', 42 - 'build_benchmarks=false', 43 - 'warning_level=0' 44 - ]) 45 - libuv_dep = libuv_sub.get_variable('libuv_dep') 46 - 47 40 tlsuv_opts = cmake.subproject_options() 48 41 tlsuv_opts.set_override_option('warning_level', '0') 49 42 tlsuv_opts.append_compile_args('c', ['-w']) ··· 80 73 tlsuv_opts.append_compile_args('c', tlsuv_compile_args) 81 74 tlsuv_dep = cmake.subproject('tlsuv', options: tlsuv_opts).dependency('tlsuv') 82 75 76 + libuv_dep = subproject('libuv').get_variable('libuv_dep') 83 77 uthash_dep = subproject('uthash').get_variable('uthash_dep') 84 78 yyjson_dep = subproject('yyjson').get_variable('yyjson_dep') 85 79 uuidv7_dep = subproject('uuidv7').get_variable('uuidv7_dep')
+5 -9
vendor/libuv.wrap
··· 1 1 [wrap-file] 2 - directory = libuv-v1.51.0 3 - source_url = https://dist.libuv.org/dist/v1.51.0/libuv-v1.51.0.tar.gz 4 - source_filename = libuv-v1.51.0.tar.gz 5 - source_hash = 5f0557b90b1106de71951a3c3931de5e0430d78da1d9a10287ebc7a3f78ef8eb 6 - patch_filename = libuv_1.51.0-1_patch.zip 7 - patch_url = https://wrapdb.mesonbuild.com/v2/libuv_1.51.0-1/get_patch 8 - patch_hash = 0fb123dee5e74621a767a8f2a29dde7219c65a01a5fe63e3c8ffeed675a2d820 9 - source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libuv_1.51.0-1/libuv-v1.51.0.tar.gz 10 - wrapdb_version = 1.51.0-1 2 + directory = libuv-v1.52.0 3 + source_url = https://dist.libuv.org/dist/v1.52.0/libuv-v1.52.0.tar.gz 4 + source_filename = libuv-v1.52.0.tar.gz 5 + source_hash = 19fd091a582c39c7ea26dcbb40a7d2e7cf095b070a757b3c32c05de6cfed6638 6 + patch_directory = libuv 11 7 12 8 [provide] 13 9 libuv = libuv_dep
+686
vendor/packagefiles/libuv/meson.build
··· 1 + project('libuv', 'c', 2 + version: '1.52.0', 3 + default_options: [ 4 + 'warning_level=0', 'werror=false', 5 + meson.version().version_compare('>=1.3.0') ? 'c_std=gnu11,c11' : 'c_std=gnu11', 6 + ], 7 + meson_version: '>=0.49.0', 8 + ) 9 + 10 + # get compiler type 11 + cc = meson.get_compiler('c') 12 + cc_msvc = cc.get_argument_syntax() == 'msvc' 13 + 14 + # get system type 15 + win32 = host_machine.system() == 'windows' 16 + gnu = host_machine.system() == 'gnu' 17 + linux = host_machine.system() == 'linux' 18 + android = host_machine.system() == 'android' 19 + apple = host_machine.system() == 'darwin' 20 + freebsd = host_machine.system() == 'freebsd' 21 + netbsd = host_machine.system() == 'netbsd' 22 + openbsd = host_machine.system() == 'openbsd' 23 + dragonfly = host_machine.system() == 'dragonfly' 24 + haiku = host_machine.system() == 'haiku' 25 + sunos = host_machine.system() == 'sunos' 26 + qnx = cc.get_define('__QNX__') != '' 27 + aix = cc.get_define('_AIX') != '' 28 + os390 = (false # TODO: detect 29 + ) 30 + os400 = (false # TODO: detect 31 + ) 32 + message('System: ' + host_machine.system()) 33 + 34 + if cc_msvc 35 + add_project_arguments( 36 + '-D_CRT_SECURE_NO_WARNINGS', 37 + cc.get_supported_arguments('-Wno-deprecated-declarations'), 38 + language: 'c', 39 + ) 40 + endif 41 + 42 + # get options 43 + libuv_build_tests = get_option('build_tests') 44 + libuv_build_bench = get_option('build_benchmarks') 45 + libuv_qemu = get_option('build_for_qemu') 46 + libuv_asan = get_option('b_sanitize').contains('address') 47 + if not libuv_build_tests 48 + libuv_build_bench = false 49 + endif 50 + 51 + # variable declaration 52 + libuv_cargs = [] 53 + libuv_libs = [] 54 + libuv_test_src = files() 55 + libuv_test_libs = [] 56 + libuv_headers = files( 57 + 'include/uv/errno.h', 58 + 'include/uv/threadpool.h', 59 + 'include/uv/version.h', 60 + ) 61 + 62 + # option-depending config 63 + if libuv_qemu 64 + libuv_cargs += '-D__QEMU__=1' 65 + endif 66 + 67 + if libuv_asan and cc.get_argument_syntax() == 'gcc' 68 + libuv_cargs += '-D__ASAN__=1' 69 + endif 70 + 71 + if cc_msvc 72 + libuv_cargs += '/we4013' 73 + endif 74 + 75 + # compiler flags 76 + if cc_msvc 77 + cc_msvc_cargs_all = [ 78 + '/wd4100', # no_unused_parameter 79 + '/wd4127', # no conditional constant 80 + '/wd4201', # no_nonstandard 81 + '/wd4206', # no_nonstandard_empty_tu 82 + '/wd4210', # no_nonstandard_file_scope 83 + '/wd4232', # no_nonstandard_nonstatic_dlimport 84 + '/wd4456', # no_hides_local 85 + '/wd4457', # no_hides_param 86 + '/wd4459', # no_hides_global 87 + '/wd4706', # no_conditional_assignment 88 + '/wd4496', # no_unsafe 89 + ] 90 + 91 + foreach flag : cc_msvc_cargs_all 92 + if cc.has_argument(flag) 93 + libuv_cargs += flag 94 + endif 95 + endforeach 96 + endif 97 + 98 + cc_other_cargs_all = [ 99 + '-fno-strict-aliasing', # f_strict_aliasing 100 + ] 101 + foreach flag : cc_other_cargs_all 102 + if cc.has_argument(flag) 103 + libuv_cargs += flag 104 + endif 105 + endforeach 106 + 107 + # basic sources 108 + libuv_src = files( 109 + 'src/fs-poll.c', 110 + 'src/idna.c', 111 + 'src/inet.c', 112 + 'src/random.c', 113 + 'src/strscpy.c', 114 + 'src/strtok.c', 115 + 'src/thread-common.c', 116 + 'src/threadpool.c', 117 + 'src/timer.c', 118 + 'src/uv-common.c', 119 + 'src/uv-data-getter-setters.c', 120 + 'src/version.c', 121 + ) 122 + 123 + # system-depending config 124 + if win32 125 + libuv_cargs += [ 126 + '-DWIN32_LEAN_AND_MEAN', 127 + '-D_WIN32_WINNT=0x0A00', 128 + '-D_CRT_DECLARE_NONSTDC_NAMES=0', 129 + ] 130 + libuv_libs += [ 131 + 'psapi', 132 + 'user32', 133 + 'advapi32', 134 + 'iphlpapi', 135 + 'userenv', 136 + 'ws2_32', 137 + 'dbghelp', 138 + 'ole32', 139 + 'uuid', 140 + 'shell32', 141 + ] 142 + libuv_src += files( 143 + 'src/win/async.c', 144 + 'src/win/core.c', 145 + 'src/win/detect-wakeup.c', 146 + 'src/win/dl.c', 147 + 'src/win/error.c', 148 + 'src/win/fs-event.c', 149 + 'src/win/fs.c', 150 + 'src/win/getaddrinfo.c', 151 + 'src/win/getnameinfo.c', 152 + 'src/win/handle.c', 153 + 'src/win/loop-watcher.c', 154 + 'src/win/pipe.c', 155 + 'src/win/poll.c', 156 + 'src/win/process-stdio.c', 157 + 'src/win/process.c', 158 + 'src/win/signal.c', 159 + 'src/win/snprintf.c', 160 + 'src/win/stream.c', 161 + 'src/win/tcp.c', 162 + 'src/win/thread.c', 163 + 'src/win/tty.c', 164 + 'src/win/udp.c', 165 + 'src/win/util.c', 166 + 'src/win/winapi.c', 167 + 'src/win/winsock.c', 168 + ) 169 + libuv_test_src += files('src/win/snprintf.c', 'test/runner-win.c') 170 + libuv_headers += files('include/uv/tree.h', 'include/uv/win.h') 171 + else 172 + libuv_cargs += ['-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE'] 173 + libuv_src += files( 174 + 'src/unix/async.c', 175 + 'src/unix/core.c', 176 + 'src/unix/dl.c', 177 + 'src/unix/fs.c', 178 + 'src/unix/getaddrinfo.c', 179 + 'src/unix/getnameinfo.c', 180 + 'src/unix/loop-watcher.c', 181 + 'src/unix/loop.c', 182 + 'src/unix/pipe.c', 183 + 'src/unix/poll.c', 184 + 'src/unix/process.c', 185 + 'src/unix/random-devurandom.c', 186 + 'src/unix/signal.c', 187 + 'src/unix/stream.c', 188 + 'src/unix/tcp.c', 189 + 'src/unix/thread.c', 190 + 'src/unix/tty.c', 191 + 'src/unix/udp.c', 192 + ) 193 + libuv_test_src += files('test/runner-unix.c') 194 + libuv_headers += files('include/uv/unix.h') 195 + endif 196 + 197 + if aix 198 + libuv_cargs += [ 199 + '-D_ALL_SOURCE', 200 + '-D_LINUX_SOURCE_COMPAT', 201 + '-D_THREAD_SAFE', 202 + '-D_XOPEN_SOURCE=500', 203 + '-D_REENTRANT', 204 + '-DHAVE_SYS_AHAFS_EVPRODS_H', 205 + ] 206 + libuv_libs += 'perfstat' 207 + libuv_src += files('src/unix/aix-common.c', 'src/unix/aix.c') 208 + libuv_headers += files('include/uv/aix.h') 209 + endif 210 + 211 + if android 212 + libuv_cargs += '-D_GNU_SOURCE' 213 + libuv_libs += 'dl' 214 + libuv_src += files( 215 + 'src/unix/linux.c', 216 + 'src/unix/procfs-exepath.c', 217 + 'src/unix/random-getentropy.c', 218 + 'src/unix/random-getrandom.c', 219 + 'src/unix/random-sysctl-linux.c', 220 + ) 221 + endif 222 + 223 + if apple or android or linux 224 + libuv_src += files('src/unix/proctitle.c') 225 + endif 226 + 227 + if dragonfly or freebsd 228 + libuv_src += files('src/unix/freebsd.c') 229 + endif 230 + 231 + if dragonfly or freebsd or netbsd or openbsd 232 + libuv_src += files('src/unix/bsd-proctitle.c', 'src/unix/posix-hrtime.c') 233 + libuv_headers += files('include/uv/bsd.h') 234 + endif 235 + 236 + if apple or dragonfly or freebsd or netbsd or openbsd 237 + libuv_src += files('src/unix/bsd-ifaddrs.c', 'src/unix/kqueue.c') 238 + endif 239 + 240 + if freebsd 241 + libuv_src += files('src/unix/random-getrandom.c') 242 + endif 243 + 244 + if apple or openbsd 245 + libuv_src += files('src/unix/random-getentropy.c') 246 + endif 247 + 248 + if apple 249 + libuv_cargs += [ 250 + '-D_DARWIN_UNLIMITED_SELECT=1', 251 + '-D_DARWIN_USE_64_BIT_INODE=1', 252 + ] 253 + libuv_src += files( 254 + 'src/unix/darwin-proctitle.c', 255 + 'src/unix/darwin.c', 256 + 'src/unix/fsevents.c', 257 + ) 258 + libuv_headers += files('include/uv/darwin.h') 259 + endif 260 + 261 + if gnu 262 + libuv_cargs += [ 263 + '-D_GNU_SOURCE', 264 + '-D_POSIX_C_SOURCE=200112', 265 + '-D_XOPEN_SOURCE=500', 266 + ] 267 + libuv_libs += ['dl'] 268 + libuv_src += files( 269 + 'src/unix/bsd-ifaddrs.c', 270 + 'src/unix/hurd.c', 271 + 'src/unix/no-fsevents.c', 272 + 'src/unix/no-proctitle.c', 273 + 'src/unix/posix-hrtime.c', 274 + 'src/unix/posix-poll.c', 275 + ) 276 + endif 277 + 278 + if linux 279 + libuv_cargs += ['-D_GNU_SOURCE', '-D_POSIX_C_SOURCE=200112'] 280 + libuv_libs += ['dl', 'rt'] 281 + libuv_src += files( 282 + 'src/unix/linux.c', 283 + 'src/unix/procfs-exepath.c', 284 + 'src/unix/random-getrandom.c', 285 + 'src/unix/random-sysctl-linux.c', 286 + ) 287 + libuv_headers += files('include/uv/linux.h') 288 + endif 289 + 290 + if netbsd 291 + libuv_src += files('src/unix/netbsd.c') 292 + libuv_libs += 'kvm' 293 + endif 294 + 295 + if openbsd 296 + libuv_src += files('src/unix/openbsd.c') 297 + endif 298 + 299 + if os390 300 + # TODO 301 + endif 302 + 303 + if os400 304 + # TODO 305 + endif 306 + 307 + if sunos 308 + libuv_cargs += ['-D__EXTENSIONS__', '-D_XOPEN_SOURCE=500'] 309 + libuv_libs += ['kstat', 'nsl', 'sendfile', 'socket'] 310 + libuv_src += files('src/unix/no-proctitle.c', 'src/unix/sunos.c') 311 + libuv_headers += files('include/uv/sunos.h') 312 + endif 313 + 314 + if haiku 315 + libuv_cargs += '-D_BSD_SOURCE' 316 + libuv_libs += ['bsd', 'network'] 317 + libuv_src += files( 318 + 'src/unix/bsd-ifaddrs.c', 319 + 'src/unix/haiku.c', 320 + 'src/unix/no-fsevents.c', 321 + 'src/unix/no-proctitle.c', 322 + 'src/unix/posix-hrtime.c', 323 + 'src/unix/posix-poll.c', 324 + ) 325 + libuv_headers += files('include/uv/posix.h') 326 + endif 327 + 328 + if qnx 329 + libuv_libs += 'socket' 330 + libuv_src += files( 331 + 'src/unix/bsd-ifaddrs.c', 332 + 'src/unix/no-fsevents.c', 333 + 'src/unix/no-proctitle.c', 334 + 'src/unix/posix-hrtime.c', 335 + 'src/unix/posix-poll.c', 336 + 'src/unix/qnx.c', 337 + ) 338 + endif 339 + 340 + if (apple 341 + or dragonfly 342 + or freebsd 343 + or linux 344 + or netbsd 345 + or openbsd) 346 + libuv_test_libs += 'util' 347 + libuv_libs += 'm' 348 + endif 349 + 350 + # convert libs to dependencies 351 + libuv_deps = [dependency('threads')] 352 + foreach lib : libuv_libs 353 + libuv_deps += cc.find_library( 354 + lib, 355 + required: true, 356 + ) 357 + endforeach 358 + libuv_test_deps = [] 359 + if libuv_build_tests 360 + foreach lib : libuv_test_libs 361 + libuv_test_deps += cc.find_library( 362 + lib, 363 + required: true, 364 + ) 365 + endforeach 366 + endif 367 + 368 + # include directories 369 + libuv_public_inc = include_directories('include') 370 + libuv_private_inc = include_directories('src') 371 + libuv_inc = [libuv_public_inc, libuv_private_inc] 372 + 373 + # libraries and respective dependency declarations 374 + libuv_test_lflags = [] 375 + if cc_msvc 376 + # TODO: workaround for msvc, because of __declspec(dllexport) 377 + if get_option('default_library') == 'both' 378 + error('default_library=both is not supported with MSVC') 379 + elif get_option('default_library') == 'shared' 380 + libuv_cargs += '-DBUILDING_UV_SHARED=1' 381 + endif 382 + endif 383 + if libuv_qemu and get_option('default_library') == 'static' 384 + libuv_test_lflags += '-static' 385 + endif 386 + 387 + libuv = library( 388 + 'uv', 389 + libuv_src, 390 + c_args: libuv_cargs, 391 + dependencies: libuv_deps, 392 + include_directories: libuv_inc, 393 + version: '1.0.0', 394 + install: true, 395 + ) 396 + libuv_dep = declare_dependency( 397 + dependencies: libuv_deps, 398 + link_with: libuv, 399 + include_directories: libuv_public_inc, 400 + ) 401 + import('pkgconfig').generate( 402 + libuv, 403 + name: 'libuv', 404 + description: 'multi-platform support library with a focus on asynchronous I/O.', 405 + url: 'http://libuv.org/', 406 + ) 407 + 408 + install_headers('include/uv.h') 409 + install_headers( 410 + libuv_headers, 411 + subdir: 'uv', 412 + ) 413 + 414 + # benchmark & test config 415 + if libuv_build_bench 416 + libuv_bench_src = libuv_test_src 417 + libuv_bench_src += files( 418 + 'test/benchmark-async-pummel.c', 419 + 'test/benchmark-async.c', 420 + 'test/benchmark-fs-stat.c', 421 + 'test/benchmark-getaddrinfo.c', 422 + 'test/benchmark-loop-count.c', 423 + 'test/benchmark-million-async.c', 424 + 'test/benchmark-million-timers.c', 425 + 'test/benchmark-multi-accept.c', 426 + 'test/benchmark-ping-pongs.c', 427 + 'test/benchmark-ping-udp.c', 428 + 'test/benchmark-pound.c', 429 + 'test/benchmark-pump.c', 430 + 'test/benchmark-queue-work.c', 431 + 'test/benchmark-queue-work.c', 432 + 'test/benchmark-sizes.c', 433 + 'test/benchmark-spawn.c', 434 + 'test/benchmark-tcp-write-batch.c', 435 + 'test/benchmark-thread.c', 436 + 'test/benchmark-udp-pummel.c', 437 + 'test/blackhole-server.c', 438 + 'test/echo-server.c', 439 + 'test/run-benchmarks.c', 440 + 'test/runner.c', 441 + ) 442 + libuv_bench_exe = executable( 443 + 'uv_run_benchmarks', 444 + libuv_bench_src, 445 + dependencies: [libuv_dep, libuv_test_deps], 446 + c_args: libuv_cargs, 447 + ) 448 + benchmark( 449 + 'uv_run_benchmarks', 450 + libuv_bench_exe, 451 + timeout: 6000, 452 + ) 453 + endif 454 + 455 + if libuv_build_tests 456 + libuv_test_src += files( 457 + 'test/blackhole-server.c', 458 + 'test/echo-server.c', 459 + 'test/run-tests.c', 460 + 'test/runner.c', 461 + 'test/test-active.c', 462 + 'test/test-async-null-cb.c', 463 + 'test/test-async.c', 464 + 'test/test-barrier.c', 465 + 'test/test-callback-stack.c', 466 + 'test/test-close-fd.c', 467 + 'test/test-close-order.c', 468 + 'test/test-condvar.c', 469 + 'test/test-connect-unspecified.c', 470 + 'test/test-connection-fail.c', 471 + 'test/test-cwd-and-chdir.c', 472 + 'test/test-default-loop-close.c', 473 + 'test/test-delayed-accept.c', 474 + 'test/test-dlerror.c', 475 + 'test/test-eintr-handling.c', 476 + 'test/test-embed.c', 477 + 'test/test-emfile.c', 478 + 'test/test-env-vars.c', 479 + 'test/test-error.c', 480 + 'test/test-fail-always.c', 481 + 'test/test-fork.c', 482 + 'test/test-fs-copyfile.c', 483 + 'test/test-fs-event.c', 484 + 'test/test-fs-fd-hash.c', 485 + 'test/test-fs-open-flags.c', 486 + 'test/test-fs-poll.c', 487 + 'test/test-fs-readdir.c', 488 + 'test/test-fs.c', 489 + 'test/test-get-currentexe.c', 490 + 'test/test-get-loadavg.c', 491 + 'test/test-get-memory.c', 492 + 'test/test-get-passwd.c', 493 + 'test/test-getaddrinfo.c', 494 + 'test/test-gethostname.c', 495 + 'test/test-getnameinfo.c', 496 + 'test/test-getsockname.c', 497 + 'test/test-getters-setters.c', 498 + 'test/test-gettimeofday.c', 499 + 'test/test-handle-fileno.c', 500 + 'test/test-homedir.c', 501 + 'test/test-hrtime.c', 502 + 'test/test-idle.c', 503 + 'test/test-idna.c', 504 + 'test/test-iouring-pollhup.c', 505 + 'test/test-ip-name.c', 506 + 'test/test-ip4-addr.c', 507 + 'test/test-ip6-addr.c', 508 + 'test/test-ipc-heavy-traffic-deadlock-bug.c', 509 + 'test/test-ipc-send-recv.c', 510 + 'test/test-ipc.c', 511 + 'test/test-loop-alive.c', 512 + 'test/test-loop-close.c', 513 + 'test/test-loop-configure.c', 514 + 'test/test-loop-handles.c', 515 + 'test/test-loop-oom.c', 516 + 'test/test-loop-stop.c', 517 + 'test/test-loop-time.c', 518 + 'test/test-metrics.c', 519 + 'test/test-multiple-listen.c', 520 + 'test/test-mutexes.c', 521 + 'test/test-not-readable-nor-writable-on-read-error.c', 522 + 'test/test-not-writable-after-shutdown.c', 523 + 'test/test-osx-select.c', 524 + 'test/test-pass-always.c', 525 + 'test/test-ping-pong.c', 526 + 'test/test-pipe-bind-error.c', 527 + 'test/test-pipe-close-stdout-read-stdin.c', 528 + 'test/test-pipe-connect-error.c', 529 + 'test/test-pipe-connect-multiple.c', 530 + 'test/test-pipe-connect-prepare.c', 531 + 'test/test-pipe-getsockname.c', 532 + 'test/test-pipe-pending-instances.c', 533 + 'test/test-pipe-sendmsg.c', 534 + 'test/test-pipe-server-close.c', 535 + 'test/test-pipe-set-fchmod.c', 536 + 'test/test-pipe-set-non-blocking.c', 537 + 'test/test-platform-output.c', 538 + 'test/test-poll-close-doesnt-corrupt-stack.c', 539 + 'test/test-poll-close.c', 540 + 'test/test-poll-closesocket.c', 541 + 'test/test-poll-multiple-handles.c', 542 + 'test/test-poll-oob.c', 543 + 'test/test-poll.c', 544 + 'test/test-process-priority.c', 545 + 'test/test-process-title-threadsafe.c', 546 + 'test/test-process-title.c', 547 + 'test/test-queue-foreach-delete.c', 548 + 'test/test-random.c', 549 + 'test/test-readable-on-eof.c', 550 + 'test/test-ref.c', 551 + 'test/test-run-nowait.c', 552 + 'test/test-run-once.c', 553 + 'test/test-semaphore.c', 554 + 'test/test-shutdown-close.c', 555 + 'test/test-shutdown-eof.c', 556 + 'test/test-shutdown-simultaneous.c', 557 + 'test/test-shutdown-twice.c', 558 + 'test/test-signal-multiple-loops.c', 559 + 'test/test-signal-pending-on-close.c', 560 + 'test/test-signal.c', 561 + 'test/test-socket-buffer-size.c', 562 + 'test/test-spawn.c', 563 + 'test/test-stdio-over-pipes.c', 564 + 'test/test-strscpy.c', 565 + 'test/test-strtok.c', 566 + 'test/test-tcp-alloc-cb-fail.c', 567 + 'test/test-tcp-bind-error.c', 568 + 'test/test-tcp-bind6-error.c', 569 + 'test/test-tcp-close-accept.c', 570 + 'test/test-tcp-close-after-read-timeout.c', 571 + 'test/test-tcp-close-reset.c', 572 + 'test/test-tcp-close-while-connecting.c', 573 + 'test/test-tcp-close.c', 574 + 'test/test-tcp-connect-error-after-write.c', 575 + 'test/test-tcp-connect-error.c', 576 + 'test/test-tcp-connect-timeout.c', 577 + 'test/test-tcp-connect6-error.c', 578 + 'test/test-tcp-create-socket-early.c', 579 + 'test/test-tcp-flags.c', 580 + 'test/test-tcp-oob.c', 581 + 'test/test-tcp-open.c', 582 + 'test/test-tcp-read-stop-start.c', 583 + 'test/test-tcp-read-stop.c', 584 + 'test/test-tcp-reuseport.c', 585 + 'test/test-tcp-rst.c', 586 + 'test/test-tcp-shutdown-after-write.c', 587 + 'test/test-tcp-try-write-error.c', 588 + 'test/test-tcp-try-write.c', 589 + 'test/test-tcp-unexpected-read.c', 590 + 'test/test-tcp-write-after-connect.c', 591 + 'test/test-tcp-write-fail.c', 592 + 'test/test-tcp-write-in-a-row.c', 593 + 'test/test-tcp-write-queue-order.c', 594 + 'test/test-tcp-write-to-half-open-connection.c', 595 + 'test/test-tcp-writealot.c', 596 + 'test/test-test-macros.c', 597 + 'test/test-thread-affinity.c', 598 + 'test/test-thread-equal.c', 599 + 'test/test-thread-name.c', 600 + 'test/test-thread-priority.c', 601 + 'test/test-thread.c', 602 + 'test/test-threadpool-cancel.c', 603 + 'test/test-threadpool.c', 604 + 'test/test-timer-again.c', 605 + 'test/test-timer-from-check.c', 606 + 'test/test-timer.c', 607 + 'test/test-tmpdir.c', 608 + 'test/test-tty-duplicate-key.c', 609 + 'test/test-tty-escape-sequence-processing.c', 610 + 'test/test-tty.c', 611 + 'test/test-udp-alloc-cb-fail.c', 612 + 'test/test-udp-bind.c', 613 + 'test/test-udp-connect.c', 614 + 'test/test-udp-connect6.c', 615 + 'test/test-udp-create-socket-early.c', 616 + 'test/test-udp-dgram-too-big.c', 617 + 'test/test-udp-ipv6.c', 618 + 'test/test-udp-mmsg.c', 619 + 'test/test-udp-multicast-interface.c', 620 + 'test/test-udp-multicast-interface6.c', 621 + 'test/test-udp-multicast-join.c', 622 + 'test/test-udp-multicast-join6.c', 623 + 'test/test-udp-multicast-ttl.c', 624 + 'test/test-udp-open.c', 625 + 'test/test-udp-options.c', 626 + 'test/test-udp-recv-in-a-row.c', 627 + 'test/test-udp-reuseport.c', 628 + 'test/test-udp-send-and-recv.c', 629 + 'test/test-udp-send-hang-loop.c', 630 + 'test/test-udp-send-immediate.c', 631 + 'test/test-udp-send-unreachable.c', 632 + 'test/test-udp-sendmmsg-error.c', 633 + 'test/test-udp-try-send.c', 634 + 'test/test-uname.c', 635 + 'test/test-walk-handles.c', 636 + 'test/test-watcher-cross-stop.c', 637 + ) 638 + 639 + libuv_test_cargs = cc.get_supported_arguments( 640 + '-Wno-int-conversion', 641 + # TODO: pending https://github.com/libuv/libuv/pull/4673 642 + '-Wno-incompatible-pointer-types', 643 + '-D_GNU_SOURCE', 644 + ) 645 + 646 + if cc_msvc 647 + if get_option('default_library') == 'both' 648 + error('default_library=both is not supported with MSVC') 649 + elif get_option('default_library') == 'shared' 650 + libuv_test_cargs += ['-DUSING_UV_SHARED=1'] 651 + endif 652 + libuv_test_lflags += [ 653 + '/MANIFEST:EMBED', 654 + '/MANIFESTINPUT:' + meson.current_source_dir() / 'uv_win_longpath.manifest', 655 + ] 656 + endif 657 + 658 + libuv_test_exe = executable( 659 + 'uv_run_tests', 660 + libuv_test_src, 661 + dependencies: [libuv_dep, libuv_test_deps], 662 + c_args: libuv_test_cargs, 663 + link_args: libuv_test_lflags, 664 + ) 665 + # in Windows we need to copy the test executable without extension (needed 666 + # for test-spawn.c in libuv), but that's not possible because run_command() 667 + # runs before executable() above creates the test executable in build 668 + # directory, so we create a symlink instead 669 + if win32 670 + link_file_in_build_dir = find_program('link_file_in_build_dir.py') 671 + run_command( 672 + link_file_in_build_dir, 673 + 'uv_run_tests.exe', 674 + 'uv_run_tests_no_ext', 675 + check: true, 676 + ) 677 + endif 678 + test( 679 + 'libuv_run_tests', 680 + libuv_test_exe, 681 + workdir: meson.current_source_dir(), 682 + protocol: 'tap', 683 + timeout: 300, 684 + is_parallel: false, 685 + ) 686 + endif
+19
vendor/packagefiles/libuv/meson_options.txt
··· 1 + option( 2 + 'build_tests', 3 + type: 'boolean', 4 + value: false, 5 + description: 'build the unit tests', 6 + ) 7 + option( 8 + 'build_benchmarks', 9 + type: 'boolean', 10 + value: false, 11 + description: 'build the benchmarks', 12 + ) 13 + option( 14 + 'build_for_qemu', 15 + type: 'boolean', 16 + value: false, 17 + description: 'build for qemu', 18 + ) 19 + # ASAN is handled via meson