Chris@2187: rem Run this from within the top-level SV dir: deploy\win64\build-64.bat Chris@2187: rem To build from clean, delete the folder build_win64_debug first Chris@2187: Chris@2187: rem NB you will probably also have to change the CONFIG in noconfig.pri Chris@2187: rem from release to debug Chris@2187: Chris@2187: echo on Chris@2187: Chris@2187: set STARTPWD=%CD% Chris@2187: Chris@2187: set QTDIR=C:\Qt\5.11.2\msvc2017_64 Chris@2187: if not exist %QTDIR% ( Chris@2187: @ echo Could not find 64-bit Qt Chris@2187: @ exit /b 2 Chris@2187: ) Chris@2187: Chris@2187: if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" ( Chris@2187: @ echo "Could not find MSVC vars batch file" Chris@2187: @ exit /b 2 Chris@2187: ) Chris@2187: Chris@2187: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 Chris@2187: Chris@2187: set ORIGINALPATH=%PATH% Chris@2187: set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin Chris@2187: Chris@2187: cd %STARTPWD% Chris@2187: Chris@2187: call .\repoint install Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: Chris@2187: 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-vamp-cpp/vamp-capnp piper/capnp/piper.capnp Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: Chris@2187: mkdir build_win64_debug Chris@2187: cd build_win64_debug Chris@2187: Chris@2187: qmake -spec win32-msvc -r -tp vc ..\sonic-visualiser.pro Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: Chris@2187: msbuild sonic-visualiser.sln /t:Build /p:Configuration=Debug Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: Chris@2187: copy .\checker\debug\vamp-plugin-load-checker.exe .\debug Chris@2187: Chris@2187: copy %QTDIR%\bin\Qt5Cored.dll .\debug Chris@2187: copy %QTDIR%\bin\Qt5Guid.dll .\debug Chris@2187: copy %QTDIR%\bin\Qt5Widgetsd.dll .\debug Chris@2187: copy %QTDIR%\bin\Qt5Networkd.dll .\debug Chris@2187: copy %QTDIR%\bin\Qt5Xmld.dll .\debug Chris@2187: copy %QTDIR%\bin\Qt5Svgd.dll .\debug Chris@2187: copy %QTDIR%\bin\Qt5Testd.dll .\debug Chris@2187: copy %QTDIR%\plugins\platforms\qminimald.dll .\debug Chris@2187: copy %QTDIR%\plugins\platforms\qwindowsd.dll .\debug Chris@2187: copy %QTDIR%\plugins\styles\qwindowsvistastyled.dll .\debug Chris@2187: copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\debug Chris@2187: Chris@2187: rem some of these expect to be run from the project root Chris@2187: cd .. Chris@2187: build_win64_debug\debug\test-svcore-base Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: build_win64_debug\debug\test-svcore-system Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: build_win64_debug\debug\test-svcore-data-fileio Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: build_win64_debug\debug\test-svcore-data-model Chris@2187: if %errorlevel% neq 0 exit /b %errorlevel% Chris@2187: Chris@2187: set PATH=%ORIGINALPATH%