Skip to content

Commit

Permalink
A little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Jan 17, 2020
1 parent 4693745 commit 77ca62f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions projects/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,21 @@ CreateWorkspace({name = "socket.core"})
IncludeLuaShared()

filter("system:windows")
local windowsdefines = {
defines({
"LUASOCKET_API=__declspec(dllexport)",
"MIME_API=__declspec(dllexport)"
}
if whitelist then windowsdefines[#windowsdefines+1] = "getaddrinfo=__wrap_getaddrinfo" end
defines(windowsdefines)
})
if whitelist then defines({"getaddrinfo=__wrap_getaddrinfo"}) end
files(LUASOCKET_FOLDER .. "/wsocket.c")
links("ws2_32")

filter("system:not windows")
local unixdefines = {
defines({
"LUASOCKET_API=''",
"UNIX_API=''",
"MIME_API=''"
}
if whitelist then unixdefines[#unixdefines+1] = "getaddrinfo=__wrap_getaddrinfo" end
defines(unixdefines)
})
if whitelist then defines({"getaddrinfo=__wrap_getaddrinfo"}) end
files(LUASOCKET_FOLDER .. "/usocket.c")

CreateWorkspace({name = "mime.core"})
Expand Down

0 comments on commit 77ca62f

Please sign in to comment.