Skip to content

Commit

Permalink
Update rockspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Nov 11, 2023
1 parent 02d062d commit 6bd096d
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions luasocket-scm-3.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ local function make_plat(plat)
defines = defines[plat],
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"] = {
sources = { "src/mime.c", "src/compat.c" },
defines = defines[plat],
Expand All @@ -80,21 +95,6 @@ local function make_plat(plat)
if plat == "haiku" then
modules["socket.core"].libraries = {"network"}
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"] = {
sources = {
"src/buffer.c"
Expand All @@ -115,6 +115,10 @@ local function make_plat(plat)
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c"
modules["socket.core"].libraries = { "ws2_32" }
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
return { modules = modules }
end
Expand Down

0 comments on commit 6bd096d

Please sign in to comment.