From efce5b6bd5c9d4f8214a71e0f7a7c35751710a4c Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 01:17:11 +0800 Subject: + tolua + lpeg --- ThirdParty/tolua_runtime/build_win32.sh | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ThirdParty/tolua_runtime/build_win32.sh (limited to 'ThirdParty/tolua_runtime/build_win32.sh') diff --git a/ThirdParty/tolua_runtime/build_win32.sh b/ThirdParty/tolua_runtime/build_win32.sh new file mode 100644 index 0000000..1ab6f04 --- /dev/null +++ b/ThirdParty/tolua_runtime/build_win32.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# 32 Bit Version +mkdir -p window/x86 + +cd luajit-2.1 +mingw32-make clean + +mingw32-make BUILDMODE=static CC="gcc -m32 -O2" +cp src/libluajit.a ../window/x86/libluajit.a +mingw32-make clean + +cd .. + +gcc -m32 -O2 -std=gnu99 -shared \ + int64.c \ + uint64.c \ + tolua.c \ + pb.c \ + lpeg.c \ + struct.c \ + cjson/strbuf.c \ + cjson/lua_cjson.c \ + cjson/fpconv.c \ + luasocket/auxiliar.c \ + luasocket/buffer.c \ + luasocket/except.c \ + luasocket/inet.c \ + luasocket/io.c \ + luasocket/luasocket.c \ + luasocket/mime.c \ + luasocket/options.c \ + luasocket/select.c \ + luasocket/tcp.c \ + luasocket/timeout.c \ + luasocket/udp.c \ + luasocket/wsocket.c \ + -o Plugins/x86/tolua.dll \ + -I./ \ + -Iluajit-2.1/src \ + -Icjson \ + -Iluasocket \ + -lws2_32 \ + -Wl,--whole-archive window/x86/libluajit.a -Wl,--no-whole-archive -static-libgcc -static-libstdc++ -- cgit v1.1-26-g67d0