Chris@676: rem Run this from within the top-level project dir: deploy\win32\build.bat Chris@676: rem To build from clean, delete the folder build_win32 Chris@676: Chris@676: set STARTPWD=%CD% Chris@676: Chris@680: set QTDIR=C:\Qt\5.12.0\msvc2017 Chris@676: if not exist %QTDIR% ( Chris@680: @ echo Could not find 32-bit Qt using MSVC Chris@676: @ exit /b 2 Chris@676: ) Chris@676: Chris@680: if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" ( Chris@680: @ echo "Could not find MSVC vars batch file" Chris@680: @ exit /b 2 Chris@680: ) Chris@680: Chris@680: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 Chris@680: Chris@676: set ORIGINALPATH=%PATH% Chris@692: set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin Chris@676: Chris@676: cd %STARTPWD% Chris@676: Chris@680: if not exist easyhg-kdiff3 ( Chris@680: hg clone https://code.soundsoftware.ac.uk/hg/easyhg-kdiff3 Chris@680: ) Chris@680: set KDIFFDIR=%STARTPWD%\easyhg-kdiff3\kdiff3\src-QT4 Chris@680: Chris@732: if not exist TortoiseSVN ( Chris@733: rem NB the "svn" command is actually installed as part of TortoiseSVN, but Chris@733: rem only if you specifically check the "command-line programs" option when Chris@733: rem installing it. We rebuild TortoisePlink rather than using the one already Chris@733: rem installed, because that is probably 64-bit and we want a 32-bit one Chris@732: svn co http://svn.osdn.net/svnroot/tortoisesvn/trunk TortoiseSVN Chris@732: ) Chris@732: if %errorlevel% neq 0 exit /b %errorlevel% Chris@732: set TSVNDIR=%STARTPWD%\TortoiseSVN Chris@732: set TPLINKDIR=%TSVNDIR%\ext\TortoisePlink Chris@732: Chris@676: mkdir build_win32 Chris@676: cd build_win32 Chris@676: Chris@680: qmake -spec win32-msvc -r -tp vc ..\easyhg.pro Chris@676: if %errorlevel% neq 0 exit /b %errorlevel% Chris@676: Chris@680: msbuild EasyMercurial.vcxproj /t:Build /p:Configuration=Release Chris@680: if %errorlevel% neq 0 exit /b %errorlevel% Chris@680: Chris@680: cd %KDIFFDIR% Chris@680: Chris@680: mkdir build_win32 Chris@680: cd build_win32 Chris@680: Chris@680: qmake -spec win32-msvc -r -tp vc ..\kdiff3.pro Chris@680: if %errorlevel% neq 0 exit /b %errorlevel% Chris@680: Chris@680: msbuild kdiff3.vcxproj /t:Build /p:Configuration=Release Chris@680: if %errorlevel% neq 0 exit /b %errorlevel% Chris@680: Chris@732: cd %TPLINKDIR%\windows\TPlink Chris@732: Chris@732: msbuild TortoisePlink.vcxproj /t:Build /p:Configuration=Release Chris@732: if %errorlevel% neq 0 exit /b %errorlevel% Chris@732: Chris@680: cd %STARTPWD%\build_win32 Chris@680: Chris@680: copy %KDIFFDIR%\build_win32\release\kdiff3.exe .\release Chris@732: copy %TSVNDIR%\bin\release\bin\TortoisePlink.exe .\release Chris@680: Chris@680: copy %QTDIR%\bin\Qt5Core.dll .\release Chris@680: copy %QTDIR%\bin\Qt5Gui.dll .\release Chris@680: copy %QTDIR%\bin\Qt5Widgets.dll .\release Chris@680: copy %QTDIR%\bin\Qt5Network.dll .\release Chris@680: copy %QTDIR%\bin\Qt5PrintSupport.dll .\release Chris@680: copy %QTDIR%\plugins\platforms\qminimal.dll .\release Chris@680: copy %QTDIR%\plugins\platforms\qwindows.dll .\release Chris@680: copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll .\release Chris@680: Chris@680: cd %STARTPWD% Chris@680: Chris@676: set PATH=%ORIGINALPATH%