annotate deploy/win/build-32.bat @ 353:497b4b1f9224

Add Opus libraries
author Chris Cannam
date Mon, 09 Sep 2019 09:20:34 +0100
parents ce1b4bafe719
children 885960538dd4
rev   line source
Chris@328 1 rem Run this from within the top-level SV dir: deploy\win64\build-32.bat
Chris@328 2 rem To build from clean, delete the folder build_win32
Chris@328 3
Chris@328 4 set STARTPWD=%CD%
Chris@328 5
Chris@347 6 set QTDIR=C:\Qt\5.11.3\mingw53_32
Chris@328 7 if not exist %QTDIR% (
Chris@328 8 @ echo Could not find 32-bit Qt
Chris@328 9 @ exit /b 2
Chris@328 10 )
Chris@328 11
Chris@328 12 set ORIGINALPATH=%PATH%
Chris@328 13 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\Tools\mingw530_32\bin
Chris@328 14
Chris@328 15 cd %STARTPWD%
Chris@328 16
Chris@328 17 call .\repoint install
Chris@328 18 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 19
Chris@328 20 mkdir build_win32
Chris@328 21 cd build_win32
Chris@328 22
Chris@328 23 qmake -spec win32-g++ -r ..\sonic-annotator.pro
Chris@328 24 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 25
Chris@328 26 mingw32-make
Chris@328 27 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@328 28
Chris@328 29 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@328 30 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@328 31 copy %QTDIR%\bin\Qt5Xml.dll .\release
Chris@328 32 copy %QTDIR%\bin\Qt5Test.dll .\release
Chris@328 33 copy %QTDIR%\bin\libgcc_s_dw2-1.dll .\release
Chris@328 34 copy %QTDIR%\bin\"libstdc++-6.dll" .\release
Chris@328 35 copy %QTDIR%\bin\libwinpthread-1.dll .\release
Chris@328 36 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@328 37 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@328 38
Chris@328 39 .\release\test-svcore-base
Chris@328 40 .\release\test-svcore-system
Chris@328 41
Chris@328 42 set PATH=%ORIGINALPATH%