comparison deploy/win/build-64.bat @ 346:90169412b1a7

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