lua/def_gen.bat

24 lines
510 B
Batchfile
Raw Permalink Normal View History

2025-02-13 12:59:20 +08:00
@echo off
setlocal
set EXPORT_DIR=export
2025-02-22 22:41:12 +08:00
set MLUA_EXE=%EXPORT_DIR%\lua.exe
set MLUAC_EXE=%EXPORT_DIR%\luac.exe
2025-02-13 12:59:20 +08:00
set BUILD_BIN=build\bin
set GENDEF_EXE=%BUILD_BIN%\gendef.exe
set FS_LIB=fs\lib.cxx
2025-02-22 23:05:53 +08:00
if not exist %GENDEF_EXE% (
echo gendef.exe not found!
exit /b 0
)
2025-02-13 12:59:20 +08:00
if not exist %EXPORT_DIR% (
mkdir %EXPORT_DIR%
)
2025-02-22 22:41:12 +08:00
copy /Y %BUILD_BIN%\lua.exe %MLUA_EXE%
copy /Y %BUILD_BIN%\luac.exe %MLUAC_EXE%
2025-02-13 13:40:51 +08:00
%GENDEF_EXE% %FS_LIB% lua_fs %EXPORT_DIR%
2025-02-13 13:29:41 +08:00
copy /Y %BUILD_BIN%\lua_fs.dll %EXPORT_DIR%
2025-02-13 13:42:12 +08:00
echo end!
2025-02-13 12:59:20 +08:00
endlocal