annotate deploy/win/build-64.bat @ 399:a3912193ce69 tip

Default branch is now named default on git as well as hg, in case we ever want to switch to mirroring in the other direction
author Chris Cannam
date Thu, 27 Aug 2020 15:57:37 +0100
parents 885960538dd4
children
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@368 8 set QTDIR=C:\Qt\5.13.2\msvc2017_64
Chris@328 9 if not exist %QTDIR% (
Chris@355 10 @ echo Could not find 64-bit Qt in %QTDIR%
Chris@328 11 @ exit /b 2
Chris@328 12 )
Chris@328 13
Chris@355 14 set vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat"
Chris@355 15
Chris@355 16 if not exist %vcvarsall% (
Chris@328 17 @ echo "Could not find MSVC vars batch file"
Chris@328 18 @ exit /b 2
Chris@328 19 )
Chris@328 20
Chris@355 21 call %vcvarsall% amd64
Chris@328 22
Chris@328 23 set ORIGINALPATH=%PATH%
Chris@328 24 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin
Chris@328 25
Chris@328 26 cd %STARTPWD%
Chris@328 27
Chris@328 28 call .\repoint install
Chris@328 29 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 30
Chris@328 31 mkdir build_win64
Chris@328 32 cd build_win64
Chris@328 33
Chris@328 34 qmake -spec win32-msvc -r -tp vc ..\sonic-annotator.pro
Chris@328 35 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 36
Chris@328 37 msbuild sonic-annotator.sln /t:Build /p:Configuration=Release
Chris@328 38 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 39
Chris@328 40 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@328 41 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@328 42 copy %QTDIR%\bin\Qt5Xml.dll .\release
Chris@328 43 copy %QTDIR%\bin\Qt5Test.dll .\release
Chris@328 44 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@328 45 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@328 46 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release
Chris@328 47
Chris@328 48 .\release\test-svcore-base
Chris@328 49 .\release\test-svcore-system
Chris@328 50
Chris@394 51 .\release\sonic-annotator -v
Chris@394 52
Chris@328 53 set PATH=%ORIGINALPATH%
Chris@394 54 cd %STARTPWD%