lua/def_gen.bat
2025-02-13 13:42:12 +08:00

19 lines
366 B
Batchfile

@echo off
setlocal
set EXPORT_DIR=export
set MLUA_EXE=%EXPORT_DIR%\mlua.exe
set BUILD_BIN=build\bin
set GENDEF_EXE=%BUILD_BIN%\gendef.exe
set FS_LIB=fs\lib.cxx
if not exist %EXPORT_DIR% (
mkdir %EXPORT_DIR%
)
copy /Y %BUILD_BIN%\mlua.exe %MLUA_EXE%
%GENDEF_EXE% %FS_LIB% lua_fs %EXPORT_DIR%
copy /Y %BUILD_BIN%\lua_fs.dll %EXPORT_DIR%
echo end!
endlocal
pause