chore(net): restructure system-specific socket code

This commit is contained in:
fallenoak 2023-03-20 17:57:41 -05:00 committed by GitHub
parent da23578002
commit b537c34990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 9 deletions

View file

@ -1,4 +1,24 @@
file(GLOB PRIVATE_SOURCES "*.cpp" "connection/*.cpp" "grunt/*.cpp" "login/*.cpp" "srp/*.cpp")
file(GLOB PRIVATE_SOURCES
"*.cpp"
"connection/*.cpp"
"grunt/*.cpp"
"login/*.cpp"
"srp/*.cpp"
)
if(WHOA_SYSTEM_WIN)
file(GLOB WINSOCK_SOURCES
"connection/winsock/*.cpp"
)
list(APPEND PRIVATE_SOURCES ${WINSOCK_SOURCES})
endif()
if(WHOA_SYSTEM_MAC OR WHOA_SYSTEM_LINUX)
file(GLOB BSD_SOURCES
"connection/bsd/*.cpp"
)
list(APPEND PRIVATE_SOURCES ${BSD_SOURCES})
endif()
add_library(net STATIC
${PRIVATE_SOURCES}