annotate deploy/win32/build.bat @ 732:66284838b373

Tentative bit of logic for bringing in TortoisePlink
author Chris Cannam
date Mon, 17 Dec 2018 13:35:48 +0000
parents a74515f1c6e8
children 7942b7633505
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@680 6 set QTDIR=C:\Qt\5.12.0\msvc2017
Chris@676 7 if not exist %QTDIR% (
Chris@680 8 @ echo Could not find 32-bit Qt using MSVC
Chris@676 9 @ exit /b 2
Chris@676 10 )
Chris@676 11
Chris@680 12 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
Chris@680 13 @ echo "Could not find MSVC vars batch file"
Chris@680 14 @ exit /b 2
Chris@680 15 )
Chris@680 16
Chris@680 17 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
Chris@680 18
Chris@676 19 set ORIGINALPATH=%PATH%
Chris@692 20 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin
Chris@676 21
Chris@676 22 cd %STARTPWD%
Chris@676 23
Chris@680 24 if not exist easyhg-kdiff3 (
Chris@680 25 hg clone https://code.soundsoftware.ac.uk/hg/easyhg-kdiff3
Chris@680 26 )
Chris@680 27 set KDIFFDIR=%STARTPWD%\easyhg-kdiff3\kdiff3\src-QT4
Chris@680 28
Chris@732 29 if not exist TortoiseSVN (
Chris@732 30 svn co http://svn.osdn.net/svnroot/tortoisesvn/trunk TortoiseSVN
Chris@732 31 )
Chris@732 32 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@732 33 set TSVNDIR=%STARTPWD%\TortoiseSVN
Chris@732 34 set TPLINKDIR=%TSVNDIR%\ext\TortoisePlink
Chris@732 35
Chris@676 36 mkdir build_win32
Chris@676 37 cd build_win32
Chris@676 38
Chris@680 39 qmake -spec win32-msvc -r -tp vc ..\easyhg.pro
Chris@676 40 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@676 41
Chris@680 42 msbuild EasyMercurial.vcxproj /t:Build /p:Configuration=Release
Chris@680 43 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@680 44
Chris@680 45 cd %KDIFFDIR%
Chris@680 46
Chris@680 47 mkdir build_win32
Chris@680 48 cd build_win32
Chris@680 49
Chris@680 50 qmake -spec win32-msvc -r -tp vc ..\kdiff3.pro
Chris@680 51 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@680 52
Chris@680 53 msbuild kdiff3.vcxproj /t:Build /p:Configuration=Release
Chris@680 54 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@680 55
Chris@732 56 cd %TPLINKDIR%\windows\TPlink
Chris@732 57
Chris@732 58 msbuild TortoisePlink.vcxproj /t:Build /p:Configuration=Release
Chris@732 59 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@732 60
Chris@680 61 cd %STARTPWD%\build_win32
Chris@680 62
Chris@680 63 copy %KDIFFDIR%\build_win32\release\kdiff3.exe .\release
Chris@732 64 copy %TSVNDIR%\bin\release\bin\TortoisePlink.exe .\release
Chris@680 65
Chris@680 66 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@680 67 copy %QTDIR%\bin\Qt5Gui.dll .\release
Chris@680 68 copy %QTDIR%\bin\Qt5Widgets.dll .\release
Chris@680 69 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@680 70 copy %QTDIR%\bin\Qt5PrintSupport.dll .\release
Chris@680 71 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@680 72 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@680 73 copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll .\release
Chris@680 74
Chris@680 75 cd %STARTPWD%
Chris@680 76
Chris@676 77 set PATH=%ORIGINALPATH%