mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Update rockspec.
This commit is contained in:
parent
02d062d965
commit
6bd096d90b
@ -56,6 +56,21 @@ local function make_plat(plat)
|
|||||||
defines = defines[plat],
|
defines = defines[plat],
|
||||||
incdir = "/src"
|
incdir = "/src"
|
||||||
},
|
},
|
||||||
|
["socket.unix"] = {
|
||||||
|
sources = {
|
||||||
|
"src/buffer.c"
|
||||||
|
, "src/compat.c"
|
||||||
|
, "src/auxiliar.c"
|
||||||
|
, "src/options.c"
|
||||||
|
, "src/timeout.c"
|
||||||
|
, "src/io.c"
|
||||||
|
, "src/usocket.c"
|
||||||
|
, "src/unix.c"
|
||||||
|
, "src/unixdgram.c"
|
||||||
|
, "src/unixstream.c" },
|
||||||
|
defines = defines[plat],
|
||||||
|
incdir = "/src"
|
||||||
|
},
|
||||||
["mime.core"] = {
|
["mime.core"] = {
|
||||||
sources = { "src/mime.c", "src/compat.c" },
|
sources = { "src/mime.c", "src/compat.c" },
|
||||||
defines = defines[plat],
|
defines = defines[plat],
|
||||||
@ -80,21 +95,6 @@ local function make_plat(plat)
|
|||||||
if plat == "haiku" then
|
if plat == "haiku" then
|
||||||
modules["socket.core"].libraries = {"network"}
|
modules["socket.core"].libraries = {"network"}
|
||||||
end
|
end
|
||||||
modules["socket.unix"] = {
|
|
||||||
sources = {
|
|
||||||
"src/buffer.c"
|
|
||||||
, "src/compat.c"
|
|
||||||
, "src/auxiliar.c"
|
|
||||||
, "src/options.c"
|
|
||||||
, "src/timeout.c"
|
|
||||||
, "src/io.c"
|
|
||||||
, "src/usocket.c"
|
|
||||||
, "src/unix.c"
|
|
||||||
, "src/unixdgram.c"
|
|
||||||
, "src/unixstream.c" },
|
|
||||||
defines = defines[plat],
|
|
||||||
incdir = "/src"
|
|
||||||
}
|
|
||||||
modules["socket.serial"] = {
|
modules["socket.serial"] = {
|
||||||
sources = {
|
sources = {
|
||||||
"src/buffer.c"
|
"src/buffer.c"
|
||||||
@ -115,6 +115,10 @@ local function make_plat(plat)
|
|||||||
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c"
|
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c"
|
||||||
modules["socket.core"].libraries = { "ws2_32" }
|
modules["socket.core"].libraries = { "ws2_32" }
|
||||||
modules["socket.core"].libdirs = {}
|
modules["socket.core"].libdirs = {}
|
||||||
|
modules["socket.unix"].sources[#modules["socket.unix"].sources+1] = "src/wsocket.c"
|
||||||
|
modules["socket.unix"].sources[#modules["socket.unix"].sources+1] = "src/inet.c"
|
||||||
|
modules["socket.unix"].libraries = { "ws2_32" }
|
||||||
|
modules["socket.unix"].libdirs = {}
|
||||||
end
|
end
|
||||||
return { modules = modules }
|
return { modules = modules }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user