annotate deploy/win64/build-64-debug.bat @ 2407:1a0defadb911

Add required library
author Chris Cannam
date Fri, 25 Oct 2019 12:18:28 +0100
parents 92c493792eaf
children
rev   line source
Chris@2187 1 rem Run this from within the top-level SV dir: deploy\win64\build-64.bat
Chris@2187 2 rem To build from clean, delete the folder build_win64_debug first
Chris@2187 3
Chris@2187 4 rem NB you will probably also have to change the CONFIG in noconfig.pri
Chris@2187 5 rem from release to debug
Chris@2187 6
Chris@2187 7 echo on
Chris@2187 8
Chris@2187 9 set STARTPWD=%CD%
Chris@2187 10
Chris@2187 11 set QTDIR=C:\Qt\5.11.2\msvc2017_64
Chris@2187 12 if not exist %QTDIR% (
Chris@2187 13 @ echo Could not find 64-bit Qt
Chris@2187 14 @ exit /b 2
Chris@2187 15 )
Chris@2187 16
Chris@2187 17 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
Chris@2187 18 @ echo "Could not find MSVC vars batch file"
Chris@2187 19 @ exit /b 2
Chris@2187 20 )
Chris@2187 21
Chris@2187 22 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
Chris@2187 23
Chris@2187 24 set ORIGINALPATH=%PATH%
Chris@2187 25 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin
Chris@2187 26
Chris@2187 27 cd %STARTPWD%
Chris@2187 28
Chris@2187 29 call .\repoint install
Chris@2187 30 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 31
Chris@2187 32 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 33 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 34
Chris@2187 35 mkdir build_win64_debug
Chris@2187 36 cd build_win64_debug
Chris@2187 37
Chris@2187 38 qmake -spec win32-msvc -r -tp vc ..\sonic-visualiser.pro
Chris@2187 39 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 40
Chris@2187 41 msbuild sonic-visualiser.sln /t:Build /p:Configuration=Debug
Chris@2187 42 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 43
Chris@2187 44 copy .\checker\debug\vamp-plugin-load-checker.exe .\debug
Chris@2187 45
Chris@2187 46 copy %QTDIR%\bin\Qt5Cored.dll .\debug
Chris@2187 47 copy %QTDIR%\bin\Qt5Guid.dll .\debug
Chris@2187 48 copy %QTDIR%\bin\Qt5Widgetsd.dll .\debug
Chris@2187 49 copy %QTDIR%\bin\Qt5Networkd.dll .\debug
Chris@2187 50 copy %QTDIR%\bin\Qt5Xmld.dll .\debug
Chris@2187 51 copy %QTDIR%\bin\Qt5Svgd.dll .\debug
Chris@2187 52 copy %QTDIR%\bin\Qt5Testd.dll .\debug
Chris@2187 53 copy %QTDIR%\plugins\platforms\qminimald.dll .\debug
Chris@2187 54 copy %QTDIR%\plugins\platforms\qwindowsd.dll .\debug
Chris@2187 55 copy %QTDIR%\plugins\styles\qwindowsvistastyled.dll .\debug
Chris@2187 56 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\debug
Chris@2187 57
Chris@2187 58 rem some of these expect to be run from the project root
Chris@2187 59 cd ..
Chris@2187 60 build_win64_debug\debug\test-svcore-base
Chris@2187 61 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 62 build_win64_debug\debug\test-svcore-system
Chris@2187 63 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 64 build_win64_debug\debug\test-svcore-data-fileio
Chris@2187 65 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 66 build_win64_debug\debug\test-svcore-data-model
Chris@2187 67 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@2187 68
Chris@2187 69 set PATH=%ORIGINALPATH%