forked from redo/BlockLua
Merge msys_compile.bat into compile.bat
This commit is contained in:
12
compile.bat
12
compile.bat
@@ -1,19 +1,13 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
|
||||
rem ensure build directory exists
|
||||
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
|
||||
@rem g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o BlockLua-Unsafe.dll
|
||||
|
||||
g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o build\BlockLua-Unsafe.dll
|
||||
@echo off
|
||||
|
||||
rem objdump -d build\BlockLua.dll > build\BlockLua.dll.dump.txt
|
||||
rem objdump -d build\BlockLua-Unsafe.dll > build\BlockLua-Unsafe.dll.dump.txt
|
||||
|
||||
pause
|
||||
|
||||
@@ -27,7 +27,7 @@ What these packages are for:
|
||||
- Run the script:
|
||||
|
||||
```powershell
|
||||
msys_compile.bat
|
||||
compile.bat
|
||||
```
|
||||
|
||||
What the script does:
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user