2017-02-19 20:08:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
project ("Test_clsocket_EchoServer")
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
|
|
|
|
includedirs {"../../examples/ThirdPartyLibs/clsocket/src"}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
|
|
|
defines { "WIN32" }
|
|
|
|
links {"Ws2_32","Winmm"}
|
|
|
|
end
|
|
|
|
if os.is("Linux") then
|
2017-02-20 17:52:59 +00:00
|
|
|
defines {"_LINUX"}
|
2017-02-19 20:08:58 +00:00
|
|
|
end
|
|
|
|
if os.is("MacOSX") then
|
2017-02-20 17:52:59 +00:00
|
|
|
defines {"_DARWIN"}
|
2017-02-19 20:08:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
links {"clsocket"}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"EchoServer.cpp",
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project ("Test_clsocket_QueryDayTime")
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
|
|
|
|
includedirs {"../../examples/ThirdPartyLibs/clsocket/src"}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
|
|
|
defines { "WIN32" }
|
|
|
|
links {"Ws2_32","Winmm"}
|
|
|
|
end
|
2017-02-20 17:52:59 +00:00
|
|
|
|
2017-02-19 20:08:58 +00:00
|
|
|
if os.is("Linux") then
|
2017-02-20 17:52:59 +00:00
|
|
|
defines {"_LINUX"}
|
|
|
|
end
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
defines {"_DARWIN"}
|
|
|
|
end
|
|
|
|
|
2017-02-19 20:08:58 +00:00
|
|
|
links {"clsocket"}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"QueryDayTime.cpp",
|
|
|
|
}
|
|
|
|
|