comparison deploy/win/build-64.bat @ 342:c7f2b178d220 bqaudiostream

Add script to call 32- and 64-bit builds
author Chris Cannam
date Mon, 04 Feb 2019 09:04:01 +0000
parents deploy/win64/build-64.bat@14b635c1a14a
children 54618edac669
comparison
equal deleted inserted replaced
341:f7c4978a6113 342:c7f2b178d220
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.12.0\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%