Update rockspec.

This commit is contained in:
Miku AuahDark 2022-12-28 16:02:12 +08:00
parent 02d062d965
commit 6bd096d90b
No known key found for this signature in database
GPG Key ID: EFB853D1AB989C18

View File

@ -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