File tree 3 files changed +38
-0
lines changed
3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 13
13
[submodule "libs/luautf8 "]
14
14
path = libs/luautf8
15
15
url = https://github.com/starwing/luautf8.git
16
+ [submodule "libs/luasocket "]
17
+ path = libs/luasocket
18
+ url = https://github.com/lunarmodules/luasocket.git
16
19
[submodule "dep/compressonator "]
17
20
path = dep/compressonator
18
21
url = https://github.com/GPUOpen-Tools/compressonator
Original file line number Diff line number Diff line change @@ -308,6 +308,40 @@ target_link_libraries(lua-utf8
308
308
install (TARGETS lua-utf8 RUNTIME DESTINATION "." )
309
309
install (FILES $<TARGET_RUNTIME_DLLS:lua-utf8> DESTINATION "." )
310
310
311
+ # luasocket module
312
+
313
+ add_library (luasocket SHARED
314
+ "libs/luasocket/src/auxiliar.c"
315
+ "libs/luasocket/src/buffer.c"
316
+ "libs/luasocket/src/compat.c"
317
+ "libs/luasocket/src/except.c"
318
+ "libs/luasocket/src/inet.c"
319
+ "libs/luasocket/src/io.c"
320
+ "libs/luasocket/src/luasocket.c"
321
+ "libs/luasocket/src/options.c"
322
+ "libs/luasocket/src/select.c"
323
+ "libs/luasocket/src/tcp.c"
324
+ "libs/luasocket/src/timeout.c"
325
+ "libs/luasocket/src/udp.c"
326
+ "libs/luasocket/src/wsocket.c"
327
+ )
328
+
329
+ target_include_directories (luasocket
330
+ PRIVATE
331
+ ${LSOCKET_SOURCE_DIR} /src
332
+ )
333
+
334
+ target_link_libraries (luasocket
335
+ PRIVATE
336
+ LuaJIT::LuaJIT
337
+ wsock32
338
+ ws2_32
339
+ )
340
+
341
+ set_target_properties ( luasocket PROPERTIES OUTPUT_NAME "socket" )
342
+ install (TARGETS luasocket RUNTIME DESTINATION "." )
343
+ install (FILES $<TARGET_RUNTIME_DLLS:luasocket> DESTINATION "." )
344
+
311
345
# lzip module
312
346
313
347
add_library (lzip SHARED libs/LZip/lzip.cpp)
You can’t perform that action at this time.
0 commit comments