comparison deploy/win64/build-64.bat @ 328:e16e4cda23b9

Update build system to follow current SV
author Chris Cannam
date Mon, 11 Jun 2018 19:29:14 +0100
parents
children 14b635c1a14a
comparison
equal deleted inserted replaced
327:0e866ef12d87 328:e16e4cda23b9
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.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 .\release\test-svcore-data-fileio
49
50 set PATH=%ORIGINALPATH%