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