2016-12-20 18:08:47 +08:00
|
|
|
@echo off
|
|
|
|
|
|
2023-03-20 11:34:04 +08:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
2016-12-20 18:08:47 +08:00
|
|
|
|
|
|
|
|
echo Swtich to x64 build env
|
2018-07-15 19:54:24 +08:00
|
|
|
cd %~dp0\luajit-2.1.0b3\src
|
2016-12-20 18:08:47 +08:00
|
|
|
call msvcbuild_mt.bat static
|
|
|
|
|
cd ..\..
|
|
|
|
|
|
|
|
|
|
mkdir build_lj64 & pushd build_lj64
|
2023-03-20 11:34:04 +08:00
|
|
|
cmake -DUSING_LUAJIT=ON -G "Visual Studio 16 2019" -A x64 ..
|
|
|
|
|
IF %ERRORLEVEL% NEQ 0 cmake -DUSING_LUAJIT=ON -G "Visual Studio 16 2019" -A x64 ..
|
2016-12-20 18:08:47 +08:00
|
|
|
popd
|
|
|
|
|
cmake --build build_lj64 --config Release
|
2017-01-11 16:21:55 +08:00
|
|
|
md plugin_luajit\Plugins\x86_64
|
2016-12-20 18:08:47 +08:00
|
|
|
copy /Y build_lj64\Release\xlua.dll plugin_luajit\Plugins\x86_64\xlua.dll
|
|
|
|
|
pause
|