Mercurial > hg > sonic-visualiser
comparison deploy/win64/build-64.bat @ 1839:fdcd956b5d32
Further tidying, and error handling, for Windows build scripting
author | Chris Cannam |
---|---|
date | Tue, 05 Jun 2018 13:32:28 +0100 |
parents | deploy/win64/complete-build.bat@e63cc95876cb |
children | 9f26f92bf89f 2b09b4dce8c4 |
comparison
equal
deleted
inserted
replaced
1832:da678ff18fb0 | 1839:fdcd956b5d32 |
---|---|
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.10.1\msvc2017_64 | |
9 if not exist %QTDIR% ( | |
10 @ echo Could not find 64-bit Qt | |
11 @ exit /b | |
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 | |
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 sv-dependency-builds\win64-msvc\bin\capnp -Isv-dependency-builds/win64-msvc/include compile --src-prefix=piper/capnp -osv-dependency-builds/win64-msvc/bin/capnpc-c++:piper-cpp/vamp-capnp piper/capnp/piper.capnp | |
30 if %errorlevel% neq 0 exit /b %errorlevel% | |
31 | |
32 mkdir build_win64 | |
33 cd build_win64 | |
34 | |
35 qmake -r -tp vc ..\sonic-visualiser.pro | |
36 if %errorlevel% neq 0 exit /b %errorlevel% | |
37 | |
38 msbuild sonic-visualiser.sln /t:Build /p:Configuration=Release | |
39 if %errorlevel% neq 0 exit /b %errorlevel% | |
40 | |
41 copy .\checker\release\vamp-plugin-load-checker.exe .\release | |
42 | |
43 copy %QTDIR%\bin\Qt5Core.dll .\release | |
44 copy %QTDIR%\bin\Qt5Gui.dll .\release | |
45 copy %QTDIR%\bin\Qt5Widgets.dll .\release | |
46 copy %QTDIR%\bin\Qt5Network.dll .\release | |
47 copy %QTDIR%\bin\Qt5Xml.dll .\release | |
48 copy %QTDIR%\bin\Qt5Svg.dll .\release | |
49 copy %QTDIR%\plugins\platforms\qminimal.dll .\release | |
50 copy %QTDIR%\plugins\platforms\qwindows.dll .\release | |
51 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release | |
52 | |
53 set PATH=%ORIGINALPATH% |