@@ -125,6 +125,7 @@ set(uv_sources
125125 src/inet.c
126126 src/random.c
127127 src/strscpy.c
128+ src/strtok.c
128129 src/threadpool.c
129130 src/timer.c
130131 src/uv-common.c
@@ -215,7 +216,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android")
215216 list (APPEND uv_defines _GNU_SOURCE)
216217 list (APPEND uv_libraries dl)
217218 list (APPEND uv_sources
218- src/unix /android-ifaddrs.c
219219 src/unix /linux-core.c
220220 src/unix /linux-inotify.c
221221 src/unix /linux-syscalls.c
@@ -259,6 +259,22 @@ if(APPLE)
259259 src/unix /fsevents.c)
260260endif ()
261261
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+
262278if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
263279 list (APPEND uv_defines _GNU_SOURCE _POSIX_C_SOURCE=200112)
264280 list (APPEND uv_libraries dl rt)
@@ -418,6 +434,7 @@ if(LIBUV_BUILD_TESTS)
418434 test /benchmark-fs-stat.c
419435 test /benchmark-getaddrinfo.c
420436 test /benchmark-loop-count.c
437+ test /benchmark-queue-work.c
421438 test /benchmark-million-async.c
422439 test /benchmark-million-timers.c
423440 test /benchmark-multi-accept.c
@@ -447,7 +464,6 @@ if(LIBUV_BUILD_TESTS)
447464 test /test -async-null-cb.c
448465 test /test -async.c
449466 test /test -barrier.c
450- test /test -callback-order.c
451467 test /test -callback-stack.c
452468 test /test -close-fd.c
453469 test /test -close-order.c
@@ -546,10 +562,12 @@ if(LIBUV_BUILD_TESTS)
546562 test /test -spawn.c
547563 test /test -stdio-over-pipes.c
548564 test /test -strscpy.c
565+ test /test -strtok.c
549566 test /test -tcp-alloc-cb-fail.c
550567 test /test -tcp-bind-error.c
551568 test /test -tcp-bind6-error.c
552569 test /test -tcp-close-accept.c
570+ test /test -tcp-close-after-read-timeout .c
553571 test /test -tcp-close-while-connecting.c
554572 test /test -tcp-close.c
555573 test /test -tcp-close-reset.c
@@ -563,6 +581,7 @@ if(LIBUV_BUILD_TESTS)
563581 test /test -tcp-open.c
564582 test /test -tcp-read-stop.c
565583 test /test -tcp-read-stop-start .c
584+ test /test -tcp-rst.c
566585 test /test -tcp-shutdown-after-write.c
567586 test /test -tcp-try-write.c
568587 test /test -tcp-try-write-error.c
@@ -663,9 +682,11 @@ install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
663682install (FILES ${PROJECT_BINARY_DIR} /libuv.pc ${PROJECT_BINARY_DIR} /libuv-static .pc
664683 DESTINATION ${CMAKE_INSTALL_LIBDIR} /pkgconfig)
665684install (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} )
669690install (EXPORT libuvConfig DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/libuv)
670691
671692if (MSVC )
0 commit comments