2025-08-16 13:44:06 +00:00
|
|
|
@echo off
|
|
|
|
if "%VisualStudioVersion%"=="" (
|
|
|
|
ECHO Visual Studio command line variables not detected!
|
|
|
|
ECHO This script will only work if you run it from a Visual Studio command line!
|
|
|
|
goto error_luajit
|
|
|
|
)
|
|
|
|
|
2025-08-15 16:09:47 +00:00
|
|
|
if /I "%VSTEL_MSBuildProjectFullPath:~-18%" neq "SharedCode.vcxproj" (
|
2025-08-16 13:44:06 +00:00
|
|
|
goto finish_luajit
|
2025-08-15 16:09:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cd ..\..\..\modules\LuaJIT\src
|
2025-08-17 18:25:41 +00:00
|
|
|
call .\msvcbuild.bat static
|
|
|
|
copy /b lua51.lib luajit51.lib
|
2025-08-16 13:44:06 +00:00
|
|
|
goto finish_luajit
|
|
|
|
|
|
|
|
:error_luajit
|
|
|
|
|
2025-08-17 18:05:37 +00:00
|
|
|
timeout 10
|
2025-08-15 16:09:47 +00:00
|
|
|
|
2025-08-16 13:44:06 +00:00
|
|
|
:finish_luajit
|
|
|
|
@echo on
|