annotate deploy/win/build-64.bat @ 354:68305800139d

Full dates
author Chris Cannam
date Tue, 08 Oct 2019 14:56:20 +0100
parents 228afe7eb408
children 0b3c180d5e08
rev   line source
Chris@328 1 rem Run this from within the top-level SV dir: deploy\win64\build-64.bat
Chris@328 2 rem To build from clean, delete the folder build_win64 first
Chris@328 3
Chris@328 4 echo on
Chris@328 5
Chris@328 6 set STARTPWD=%CD%
Chris@328 7
Chris@351 8 set QTDIR=C:\Qt\5.13.0\msvc2017_64
Chris@328 9 if not exist %QTDIR% (
Chris@328 10 @ echo Could not find 64-bit Qt
Chris@328 11 @ exit /b 2
Chris@328 12 )
Chris@328 13
Chris@328 14 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
Chris@328 15 @ echo "Could not find MSVC vars batch file"
Chris@328 16 @ exit /b 2
Chris@328 17 )
Chris@328 18
Chris@328 19 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
Chris@328 20
Chris@328 21 set ORIGINALPATH=%PATH%
Chris@328 22 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin
Chris@328 23
Chris@328 24 cd %STARTPWD%
Chris@328 25
Chris@328 26 call .\repoint install
Chris@328 27 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 28
Chris@328 29 mkdir build_win64
Chris@328 30 cd build_win64
Chris@328 31
Chris@328 32 qmake -spec win32-msvc -r -tp vc ..\sonic-annotator.pro
Chris@328 33 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 34
Chris@328 35 msbuild sonic-annotator.sln /t:Build /p:Configuration=Release
Chris@328 36 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 37
Chris@328 38 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@328 39 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@328 40 copy %QTDIR%\bin\Qt5Xml.dll .\release
Chris@328 41 copy %QTDIR%\bin\Qt5Test.dll .\release
Chris@328 42 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@328 43 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@328 44 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release
Chris@328 45
Chris@328 46 .\release\test-svcore-base
Chris@328 47 .\release\test-svcore-system
Chris@328 48
Chris@328 49 set PATH=%ORIGINALPATH%