forked from redo/BlockLua
make
This commit is contained in:
27
make.bat
Normal file
27
make.bat
Normal file
@@ -0,0 +1,27 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
|
||||
REM Ensure MinGW32 toolchain is first in PATH (matches compile.bat)
|
||||
set "PATH=C:\msys64\mingw32\bin;%PATH%"
|
||||
|
||||
REM Configure CMake (generate into build/)
|
||||
cmake -S . -B build -G "MinGW Makefiles"
|
||||
if errorlevel 1 goto :error
|
||||
|
||||
REM Build (Release by default)
|
||||
cmake --build build --config Release -j
|
||||
if errorlevel 1 goto :error
|
||||
|
||||
echo.
|
||||
echo Build completed.
|
||||
echo Outputs in .\build :
|
||||
echo - BlockLua.dll
|
||||
|
||||
echo - BlockLua-Unsafe.dll
|
||||
|
||||
exit /b 0
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo Build failed. See errors above.
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user