2016-12-20 18:08:47 +08:00
|
|
|
@echo off
|
|
|
|
|
|
2019-02-27 10:03:40 +08:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\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
|
2019-02-27 10:03:40 +08:00
|
|
|
cmake -DUSING_LUAJIT=ON -G "Visual Studio 15 2017 Win64" ..
|
2018-10-24 10:22:13 +08:00
|
|
|
IF %ERRORLEVEL% NEQ 0 cmake -DUSING_LUAJIT=ON -G "Visual Studio 15 2017 Win64" ..
|
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
|