Chris@1839: rem Run this from within the top-level SV dir: deploy\win64\build-64.bat Chris@1839: rem To build from clean, delete the folder build_win64 first Chris@1839: Chris@1839: echo on Chris@1827: Chris@1827: set STARTPWD=%CD% Chris@1827: Chris@1839: set QTDIR=C:\Qt\5.10.1\msvc2017_64 Chris@1839: if not exist %QTDIR% ( Chris@1839: @ echo Could not find 64-bit Qt Chris@1839: @ exit /b Chris@1839: ) Chris@1839: Chris@1827: if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" ( Chris@1827: @ echo "Could not find MSVC vars batch file" Chris@1827: @ exit /b Chris@1827: ) Chris@1827: Chris@1827: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 Chris@1827: Chris@1839: set ORIGINALPATH=%PATH% Chris@1839: set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin Chris@1827: Chris@1827: cd %STARTPWD% Chris@1827: Chris@1827: call .\repoint install Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel% Chris@1827: Chris@1827: sv-dependency-builds\win64-msvc\bin\capnp -Isv-dependency-builds/win64-msvc/include compile --src-prefix=piper/capnp -osv-dependency-builds/win64-msvc/bin/capnpc-c++:piper-cpp/vamp-capnp piper/capnp/piper.capnp Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel% Chris@1827: Chris@1827: mkdir build_win64 Chris@1827: cd build_win64 Chris@1827: Chris@1844: qmake -spec win32-msvc -r -tp vc ..\sonic-visualiser.pro Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel% Chris@1827: Chris@1827: msbuild sonic-visualiser.sln /t:Build /p:Configuration=Release Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel% Chris@1827: Chris@1827: copy .\checker\release\vamp-plugin-load-checker.exe .\release Chris@1827: Chris@1827: copy %QTDIR%\bin\Qt5Core.dll .\release Chris@1827: copy %QTDIR%\bin\Qt5Gui.dll .\release Chris@1827: copy %QTDIR%\bin\Qt5Widgets.dll .\release Chris@1827: copy %QTDIR%\bin\Qt5Network.dll .\release Chris@1827: copy %QTDIR%\bin\Qt5Xml.dll .\release Chris@1827: copy %QTDIR%\bin\Qt5Svg.dll .\release Chris@1827: copy %QTDIR%\plugins\platforms\qminimal.dll .\release Chris@1827: copy %QTDIR%\plugins\platforms\qwindows.dll .\release Chris@1827: copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release Chris@1827: Chris@1839: set PATH=%ORIGINALPATH%