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@676: set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\Tools\mingw530_32\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@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@680: cd %STARTPWD%\build_win32 Chris@680: Chris@680: copy %KDIFFDIR%\build_win32\release\kdiff3.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%