lua/def_gen.bat

21 lines
441 B
Batchfile

@echo off
setlocal
set EXPORT_DIR=export
set MLUA_EXE=%EXPORT_DIR%\lua.exe
set MLUAC_EXE=%EXPORT_DIR%\luac.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%\lua.exe %MLUA_EXE%
copy /Y %BUILD_BIN%\luac.exe %MLUAC_EXE%
%GENDEF_EXE% %FS_LIB% lua_fs %EXPORT_DIR%
copy /Y %BUILD_BIN%\lua_fs.dll %EXPORT_DIR%
echo end!
endlocal
pause