comparison deploy/win64/build-32.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-32.bat
2 rem To build from clean, delete the folder build_win32
3
4 set STARTPWD=%CD%
5
6 set QTDIR=C:\Qt\5.10.1\mingw53_32
7 if not exist %QTDIR% (
8 @ echo Could not find 32-bit Qt
9 @ exit /b
10 )
11
12 set ORIGINALPATH=%PATH%
13 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\Tools\mingw530_32\bin
14
15 cd %STARTPWD%
16
17 call .\repoint install
18 if %errorlevel% neq 0 exit /b %errorlevel%
19
20 sv-dependency-builds\win32-mingw\bin\capnp -Isv-dependency-builds/win32-mingw/include compile --src-prefix=piper/capnp -osv-dependency-builds/win32-mingw/bin/capnpc-c++:piper-cpp/vamp-capnp piper/capnp/piper.capnp
21 if %errorlevel% neq 0 exit /b %errorlevel%
22
23 mkdir build_win32
24 cd build_win32
25
26 qmake -r ..\sonic-visualiser.pro
27 if %errorlevel% neq 0 exit /b %errorlevel%
28
29 jom
30 if %errorlevel% neq 0 exit /b %errorlevel%
31
32 copy .\checker\release\vamp-plugin-load-checker.exe .\release
33
34 copy %QTDIR%\bin\Qt5Core.dll .\release
35 copy %QTDIR%\bin\Qt5Gui.dll .\release
36 copy %QTDIR%\bin\Qt5Widgets.dll .\release
37 copy %QTDIR%\bin\Qt5Network.dll .\release
38 copy %QTDIR%\bin\Qt5Xml.dll .\release
39 copy %QTDIR%\bin\Qt5Svg.dll .\release
40 copy %QTDIR%\bin\libgcc_s_dw2-1.dll .\release
41 copy %QTDIR%\bin\"libstdc++-6.dll" .\release
42 copy %QTDIR%\bin\libwinpthread-1.dll .\release
43 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
44 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
45
46 set PATH=%ORIGINALPATH%