@echo off cd /d %~dp0 set "PATH=C:\msys64\mingw32\bin;%PATH%" if not exist build mkdir build set buildargs=-Wall -Werror -m32 -shared -Isrc -Iinc/tsfuncs -Iinc/lua -lpsapi -L. -llua5.1 -static-libgcc -static-libstdc++ echo on g++ src/bllua4.cpp %buildargs% -o build\BlockLua.dll g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o build\BlockLua-Unsafe.dll @echo off