annotate deploy/win32/build-32.bat @ 2596:04d381f0d89a tip

Default branch is now named default on git as well as hg, in case we ever want to switch to mirroring in the other direction
author Chris Cannam
date Thu, 27 Aug 2020 15:58:56 +0100
parents 4448639b9bb1
children
rev   line source
Chris@2231 1 rem Run this from within the top-level SV dir: deploy\win32\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@2218 6 set QTDIR=C:\Qt\5.11.3\mingw53_32
Chris@1839 7 if not exist %QTDIR% (
Chris@1839 8 @ echo Could not find 32-bit Qt
Chris@1841 9 @ exit /b 2
Chris@1827 10 )
Chris@1827 11
Chris@1839 12 set ORIGINALPATH=%PATH%
Chris@2365 13 set PATH=C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\Tools\mingw530_32\bin;%PATH%
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@2045 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-vamp-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@2590 26 qmake -unset SV_PERSISTENT_DEFINES
Chris@1846 27 qmake -spec win32-g++ -r ..\sonic-visualiser.pro
Chris@1839 28 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 29
Chris@1847 30 mingw32-make
Chris@1839 31 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 32
Chris@1827 33 copy .\checker\release\vamp-plugin-load-checker.exe .\release
Chris@1827 34
Chris@1827 35 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@1827 36 copy %QTDIR%\bin\Qt5Gui.dll .\release
Chris@1827 37 copy %QTDIR%\bin\Qt5Widgets.dll .\release
Chris@1827 38 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@1827 39 copy %QTDIR%\bin\Qt5Xml.dll .\release
Chris@1827 40 copy %QTDIR%\bin\Qt5Svg.dll .\release
Chris@1852 41 copy %QTDIR%\bin\Qt5Test.dll .\release
Chris@1827 42 copy %QTDIR%\bin\libgcc_s_dw2-1.dll .\release
Chris@1827 43 copy %QTDIR%\bin\"libstdc++-6.dll" .\release
Chris@1827 44 copy %QTDIR%\bin\libwinpthread-1.dll .\release
Chris@1827 45 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@1827 46 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@1891 47 copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll .\release
Chris@1827 48
Chris@1982 49 rem some of these expect to be run from the project root
Chris@1982 50 cd ..
Chris@1982 51 build_win32\release\test-svcore-base
Chris@2186 52 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1982 53 build_win32\release\test-svcore-system
Chris@2186 54 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1982 55 build_win32\release\test-svcore-data-fileio
Chris@2186 56 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1982 57 build_win32\release\test-svcore-data-model
Chris@2186 58 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1852 59
Chris@1839 60 set PATH=%ORIGINALPATH%