@@ -125,6 +125,7 @@ set(uv_sources
125
125
src/inet.c
126
126
src/random.c
127
127
src/strscpy.c
128
+ src/strtok.c
128
129
src/threadpool.c
129
130
src/timer.c
130
131
src/uv-common.c
@@ -215,7 +216,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android")
215
216
list (APPEND uv_defines _GNU_SOURCE)
216
217
list (APPEND uv_libraries dl)
217
218
list (APPEND uv_sources
218
- src/unix /android-ifaddrs.c
219
219
src/unix /linux-core.c
220
220
src/unix /linux-inotify.c
221
221
src/unix /linux-syscalls.c
@@ -259,6 +259,22 @@ if(APPLE)
259
259
src/unix /fsevents.c)
260
260
endif ()
261
261
262
+ if (CMAKE_SYSTEM_NAME STREQUAL "GNU" )
263
+ list (APPEND uv_libraries dl)
264
+ list (APPEND uv_sources
265
+ src/unix /bsd-ifaddrs.c
266
+ src/unix /no -fsevents.c
267
+ src/unix /no -proctitle.c
268
+ src/unix /posix-hrtime.c
269
+ src/unix /posix-poll.c
270
+ src/unix /hurd.c)
271
+ endif ()
272
+
273
+ if (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD" )
274
+ list (APPEND uv_defines _GNU_SOURCE)
275
+ list (APPEND uv_libraries dl freebsd-glue)
276
+ endif ()
277
+
262
278
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
263
279
list (APPEND uv_defines _GNU_SOURCE _POSIX_C_SOURCE=200112)
264
280
list (APPEND uv_libraries dl rt)
@@ -418,6 +434,7 @@ if(LIBUV_BUILD_TESTS)
418
434
test /benchmark-fs-stat.c
419
435
test /benchmark-getaddrinfo.c
420
436
test /benchmark-loop-count.c
437
+ test /benchmark-queue-work.c
421
438
test /benchmark-million-async.c
422
439
test /benchmark-million-timers.c
423
440
test /benchmark-multi-accept.c
@@ -447,7 +464,6 @@ if(LIBUV_BUILD_TESTS)
447
464
test /test -async-null-cb.c
448
465
test /test -async.c
449
466
test /test -barrier.c
450
- test /test -callback-order.c
451
467
test /test -callback-stack.c
452
468
test /test -close-fd.c
453
469
test /test -close-order.c
@@ -546,10 +562,12 @@ if(LIBUV_BUILD_TESTS)
546
562
test /test -spawn.c
547
563
test /test -stdio-over-pipes.c
548
564
test /test -strscpy.c
565
+ test /test -strtok.c
549
566
test /test -tcp-alloc-cb-fail.c
550
567
test /test -tcp-bind-error.c
551
568
test /test -tcp-bind6-error.c
552
569
test /test -tcp-close-accept.c
570
+ test /test -tcp-close-after-read-timeout .c
553
571
test /test -tcp-close-while-connecting.c
554
572
test /test -tcp-close.c
555
573
test /test -tcp-close-reset.c
@@ -563,6 +581,7 @@ if(LIBUV_BUILD_TESTS)
563
581
test /test -tcp-open.c
564
582
test /test -tcp-read-stop.c
565
583
test /test -tcp-read-stop-start .c
584
+ test /test -tcp-rst.c
566
585
test /test -tcp-shutdown-after-write.c
567
586
test /test -tcp-try-write.c
568
587
test /test -tcp-try-write-error.c
@@ -663,9 +682,11 @@ install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
663
682
install (FILES ${PROJECT_BINARY_DIR} /libuv.pc ${PROJECT_BINARY_DIR} /libuv-static .pc
664
683
DESTINATION ${CMAKE_INSTALL_LIBDIR} /pkgconfig)
665
684
install (TARGETS uv EXPORT libuvConfig
666
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
667
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
668
- install (TARGETS uv_a ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
685
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
686
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
687
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
688
+ install (TARGETS uv_a EXPORT libuvConfig
689
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
669
690
install (EXPORT libuvConfig DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/libuv)
670
691
671
692
if (MSVC )
0 commit comments