dir -> directory walker similar to dirent
    dirwatch -> lets you watch a directory for changes in another thread
    vec -> generic vector
This commit is contained in:
snarmph 2021-10-25 01:32:31 +01:00
parent aa08240ec9
commit 59b55c7f6c
26 changed files with 4037 additions and 2726 deletions

View file

@ -1,18 +1,22 @@
add_library(Colla STATIC
socket.c
tracelog.c
http.c
strstream.c
strview.c
str.c
coroutine.c
os.c
fs.c
file.c
)
IF (WIN32)
target_link_libraries(Colla ws2_32.lib)
ELSE()
# posix
ENDIF()
add_library(Colla STATIC
socket.c
tracelog.c
http.c
strstream.c
str.c
coroutine.c
os.c
fs.c
file.c
dir.c
dirwatch.c
)
if(MSVC)
target_link_libraries(Colla ws2_32.lib)
target_compile_options(Colla PRIVATE /W4)
else()
target_link_libraries(Colla pthread)
target_compile_options(Colla PRIVATE -Wall -Wextra -Wpedantic)
target_compile_definitions(Colla PUBLIC _DEFAULT_SOURCE)
endif()