first draft of premake/cmake build files for clsocket (tiny cross-platform TCP socket library)

This commit is contained in:
Erwin Coumans
2017-02-19 11:48:01 -08:00
parent 957266b121
commit 4faa6613c9
4 changed files with 38 additions and 29 deletions

View File

@@ -0,0 +1,24 @@
project "clsocket"
kind "StaticLib"
if os.is("Windows") then
defines { "WIN32","_WINSOCK_DEPRECATED_NO_WARNINGS" }
end
if os.is("Linux") then
defines {"HAS_SOCKLEN_T","_LINUX"}
end
if os.is("MacOSX") then
defines {"HAS_SOCKLEN_T","_DARWIN"}
end
includedirs {
".","include"
}
files {
"src/SimpleSocket.cpp",
"src/ActiveSocket.cpp",
"src/PassiveSocket.cpp",
"**.h"
}