Chris@328: rem Run this from within the top-level SV dir: deploy\win64\build-64.bat Chris@328: rem To build from clean, delete the folder build_win64 first Chris@328: Chris@328: echo on Chris@328: Chris@328: set STARTPWD=%CD% Chris@328: Chris@340: set QTDIR=C:\Qt\5.12.0\msvc2017_64 Chris@328: if not exist %QTDIR% ( Chris@328: @ echo Could not find 64-bit Qt Chris@328: @ exit /b 2 Chris@328: ) Chris@328: Chris@328: if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" ( Chris@328: @ echo "Could not find MSVC vars batch file" Chris@328: @ exit /b 2 Chris@328: ) Chris@328: Chris@328: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 Chris@328: Chris@328: set ORIGINALPATH=%PATH% Chris@328: set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin Chris@328: Chris@328: cd %STARTPWD% Chris@328: Chris@328: call .\repoint install Chris@328: if %errorlevel% neq 0 exit /b %errorlevel% Chris@328: Chris@328: mkdir build_win64 Chris@328: cd build_win64 Chris@328: Chris@328: qmake -spec win32-msvc -r -tp vc ..\sonic-annotator.pro Chris@328: if %errorlevel% neq 0 exit /b %errorlevel% Chris@328: Chris@328: msbuild sonic-annotator.sln /t:Build /p:Configuration=Release Chris@328: if %errorlevel% neq 0 exit /b %errorlevel% Chris@328: Chris@328: copy %QTDIR%\bin\Qt5Core.dll .\release Chris@328: copy %QTDIR%\bin\Qt5Network.dll .\release Chris@328: copy %QTDIR%\bin\Qt5Xml.dll .\release Chris@328: copy %QTDIR%\bin\Qt5Test.dll .\release Chris@328: copy %QTDIR%\plugins\platforms\qminimal.dll .\release Chris@328: copy %QTDIR%\plugins\platforms\qwindows.dll .\release Chris@328: copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release Chris@328: Chris@328: .\release\test-svcore-base Chris@328: .\release\test-svcore-system Chris@328: Chris@328: set PATH=%ORIGINALPATH%