1
0
forked from redo/BlockLua

BlockLua.dll compiles to build dir

This commit is contained in:
2025-10-05 14:49:54 -04:00
parent 1a4c7bfefc
commit 4d74df209e
3 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.*
!.gitignore
build/

Binary file not shown.

View File

@@ -1,16 +1,19 @@
@echo off
cd /d %~dp0
rem ensure build directory exists
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 BlockLua.dll
g++ src/bllua4.cpp %buildargs% -o build\BlockLua.dll
@rem g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o BlockLua-Unsafe.dll
@echo off
rem objdump -d BlockLua.dll > BlockLua.dll.dump.txt
rem objdump -d BlockLua-Unsafe.dll > BlockLua-Unsafe.dll.dump.txt
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