annotate deploy/win32/build.bat @ 676:cb4f7c3c01dd

Toward some CI bits
author Chris Cannam
date Thu, 06 Dec 2018 13:45:23 +0000
parents
children 21e03596dd93
rev   line source
Chris@676 1 rem Run this from within the top-level project dir: deploy\win32\build.bat
Chris@676 2 rem To build from clean, delete the folder build_win32
Chris@676 3
Chris@676 4 set STARTPWD=%CD%
Chris@676 5
Chris@676 6 set QTDIR=C:\Qt\5.11.2\mingw53_32
Chris@676 7 if not exist %QTDIR% (
Chris@676 8 @ echo Could not find 32-bit Qt
Chris@676 9 @ exit /b 2
Chris@676 10 )
Chris@676 11
Chris@676 12 set ORIGINALPATH=%PATH%
Chris@676 13 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\Tools\mingw530_32\bin
Chris@676 14
Chris@676 15 cd %STARTPWD%
Chris@676 16
Chris@676 17 mkdir build_win32
Chris@676 18 cd build_win32
Chris@676 19
Chris@676 20 qmake -spec win32-g++ -r ..\easyhg.pro
Chris@676 21 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@676 22
Chris@676 23 mingw32-make
Chris@676 24 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@676 25
Chris@676 26 set PATH=%ORIGINALPATH%